Can I save a video uploaded via MPMoviePlayerViewController or MPMoviePlayerController?

I display deleted video files using MPMoviePlayerViewController, and I would like to save the downloaded video to the document directory as soon as it finishes downloading. Is there any way to do this or access the movie data? I know I can download it using NSURLConnection, but then it basically needs to download it twice, and not just once.

Update:

What I ended up with was postponing the delayed background download of the same file that is currently being played by the video player, but only if the connection is WIFI, so I don’t suck all their bandwidth and strangle the movie currently playing.

+3
source share
2

, - MPMoviePlayerController [NSURLCache sharedURLCache], .

- , - , , , .

SO: MPMoviePlayerController

+1

, , - , , WIFI, .

+1

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


All Articles