问题
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