Transition MPMoviePlayer or AVPlayer Frame

Is there a way to play video files frame by frame using MPMoviePlayer or AVPlayer? Or even another movie that I don’t know about?

Here is what I want to do. I want to upload a video to a full-screen player and move the content one frame at a time depending on user interaction. This should be pretty solid, as I will need to precisely control which frame the movie player showed at any moment.

Ideally, I would like to know if it is possible to upload video and control the frame displayed using the code.

I know that I could do this using the UIImageView animation, but tests show that it uses FAR for a lot of memory.

+5
source share
1 answer

When using AVPlayer, you can use the stepCyut: (void) stepByCount: (NSInteger) method for the current AVPlayerItem to go forward or backward.

AVPlayer * mPlayer = [AVPlayer playerWithURL: url];
[mPlayer.currentItem stepByCount: 1];
+8
source

All Articles