That's what I feared. I havent tried using %d yet. I'll do so when I get near my mac again.
On the other hand, I only need the currentTime value to figure out how long the video has been playing. I've tried a workaround by just initializing an NSDate object when I call [video play]. Then, when the video stops, I can call the timeIntervalSinceNow method from NSDate to figure out the elapsed time since the movie started.
The only issue now is that if the user pressed the "pause" button, I have no way of getting notified to adjust the elapsed time. My solution would be to overlay an invisible button on top of the 'pause' button on the movie player so that when the user thinks he/she is hittin pause, they are actually hitting the invis button I've overlayed. This will allow me to capture that event, adjust the elapsed time, and then pass the touch on to the movie player so it can actually pause the movie.
The problem I'm facing here is that I can't figure out how to pass the touch on to be handled by the movie player controller.
Any ideas?
|