views:

51

answers:

1

Hello,

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!

A: 

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.

David Liu
Hi and thank you for your answer. I am working on iOS 4.1. The MPMoviePlayerController conforms to the MPMediaPlayback Protocol, but it doesn't include the currentPlaybackTime property! This is the problem :-( . Or do I have to implement it myself somehow?
Micko
Forget about my last comment. MPMoviePlayerController and the property "currentPlaybackTime" is the right way to do it, even if it is not obviously written as a property in the MPMoviePlayerController.h file... I now get the time in seconds as a float value. thanks
Micko