Computer Science/swift ๋ฝ€๊ฐœ๊ธฐ - ์ฐธ๊ณ  ์‚ฌ์ดํŠธ ์ €์žฅ์†Œ

[swift] AVPlayer, AVFoundation

_cactus 2021. 8. 4. 14:51
๋ฐ˜์‘ํ˜•

reference :

https://stackoverflow.com/questions/38437935/how-do-i-get-current-playing-time-cmtime-in-milliseconds-in-avplayer/56608415

 

How do I get current playing time, CMTime in milliseconds in AVPlayer?

I am getting current playing value in seconds but i need in milliseconds. I tried to currentTime.value/currentTime.scale. But it didn't get exact value. CMTime currentTime = vPlayer.currentItem.

stackoverflow.com

https://stackoverflow.com/questions/7894979/how-to-show-avplayer-current-play-duration-in-uislider

 

How to show AVplayer current play duration in UISlider

I am using a custom UISlider to implement the scrubbing while playing a video in AVPlayer. Trying to figure out the best way to show the current play time and the remaining duration on the respective

stackoverflow.com

 

https://stackoverflow.com/questions/10994567/avplayer-progress-slider-change-with-user-dragging-it/10995640

 

AVPlayer Progress slider change with user dragging it

I am using AVPlayer, and its working good. I put slider and it is progression according to player duration. But i want if user drags slider then play time changes accordingly. i.e. Song forwards...

stackoverflow.com

 

https://rhammer.tistory.com/332

 

[AVFoundation] Observing the Playback Time (๋™์˜์ƒ์˜ ์žฌ์ƒ์‹œ๊ฐ„ Observeํ•˜๊ธฐ)

Observing the Playback Time https://developer.apple.com/documentation/avfoundation/media_assets_playback_and_editing/observing_the_playback_time Overview ๋ฏธ๋””์–ด์˜ ์žฌ์ƒ์‹œ๊ฐ„์˜ ํ๋ฆ„์„ ์•Œ๊ณ  ์‹ถ๋‹ค. ํ˜„์žฌ..

rhammer.tistory.com

 

 

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•