slowman21
slowman21

Reputation: 2515

Can someone please explain CMTime for iOS4?

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

Upvotes: 1

Views: 1645

Answers (1)

Rod
Rod

Reputation: 55752

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

CMTime fiveSecondsIn = CMTimeMake(5, 1);
[player seekToTime:fiveSecondsIn];

Upvotes: 5

Related Questions