Quickly view video in AVFoundation or MPMoviePlayerViewController ios

I am trying to create an iPad application that reads video on a server. I would like to be able to search for videos very quickly and smoothly.

I noticed that MPMoviePlayerViewController and AVFoundation are very slow and jump when slipping.

The solution I currently have is to get the frames from MPMoviePlayerViewController and then do my own operations. It bothers me that I do this every 10 seconds for 3 videos (different views), and it gives me tremendous time and memory.

I also tried to put the video on the iPad device itself, and that doesn't help.

The question is, does anyone know a better solution to this search problem?

I am also open to using libraries or other frameworks. :)

Any help and advice is greatly appreciated!

+6
source share
1 answer

If someone comes across this then the answer is to use AVFoundation. Configure AVPlayer and then get AVPlayerItem from AVPlayer using the currentItem method. Then you need to use the stepByCount method to move in any direction using int.

+2
source

Source: https://habr.com/ru/post/906728/


All Articles