Get the current position of a played movie (MPMoviePlayerController currentPlaybackTime doesn't work)

别说谁变了你拦得住时间么 提交于 2019-12-11 01:43:13

问题


hopefully someone has an answer - I am searching now for hours. I want to get the position of an movie.

I tried it with MPMoviePlayerController, but this class doesn't support the MPMediaPlayback property called "currentPlaybackTime". (the funny thing is, that the MP Music PlayerController has this property)

Therefore I can't get the position in my video. Is there another way to do it???

Thank you very much in advance!


回答1:


MPMoviePlayerController conforms to the MPMediaPlayback protocol, and does have a currentPlaybackTime property available. However, I believe that the currentPlaybackTime property was introduced in 3.2, so it may not be available to you if you're trying to develop on a pre-3.2 device.



来源:https://stackoverflow.com/questions/3945796/get-the-current-position-of-a-played-movie-mpmovieplayercontroller-currentplayb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!