views:

44

answers:

1

I would like to use AVPlayer Class' seekToTime. It takes a CMTime. I read the CMTime reference from Apple but its is very hard to understand. Can someone please give me an example on how to use...

- (void)seekToTime:(CMTime)time
+2  A: 

Some example are provided in the AV Foundation Programming Guide such as:

CMTime fiveSecondsIn = CMTimeMake(5, 1);
[player seekToTime:fiveSecondsIn];
Rod
Thanks for the reply Rod. I have read the above before and also have tried it. But again, the documentation is not very clear at all. If you actually understand it, could you please explain a little bit?
slowman21
What exactly are you not understanding?
Rod
Lets see here, with the above code for example. Is it suppose to fast foward my current track 5 secs ahead? Can I just make it an IBAction and on TouchUpInside skip 5secs aheard for example?
slowman21