2

Possible Duplicate:
iOS Frame by Frame video playback forward/backward

In my application I am playing video with video playback features.

I want to add one more feature for play video frame by frame.

I will put two buttons, one for Frame+ and other one for frame-. If I tap on Frame+ than video should move 1 frame ahead and if I tap on Frame- than video should move 1 frame back.

Please suggest me how can I achieve this.

Community
  • 1
  • 1
S S
  • 193
  • 1
  • 1
  • 11

1 Answers1

4

Try using AVPlayer's -(void)stepByCount:(NSInteger)stepCount method. This has to be used with AVPlayerItem as follows:

AVPlayer *mPlayer = [AVPlayer playerWithURL:url];
[mPlayer.currentItem stepByCount:1];
Anil
  • 2,430
  • 3
  • 37
  • 55