How to play an in downloading progress video file in IOS - ios

I'm assigned to implement a iphone app that can download video files from a server, and to play that video while the video file is written to the disk; something likes
(Movie player)<--read--[###### iphone flaskdisk ######]<--write---(Downloader)
I know that I would use HTTP video streaming play a remote video stream, but what i need is the video file is saved in flask mem after playing.
Any suggestion?
Thanks

If you know how to play a video from a URL, you can easily play the video while simultaneously download the video on another thread (if you are short on time)...
Alternatively, you can create your own video player that handles this function. Application sin the App Store do already do this (check out any video downloader application)
Thanks!

Related

How to download a encrypted m3u8 in iOS. Even if would able to download I could not able to play the encrypted video in offline mode

In earlier case of my I have played non encrypted .m3u8 video in offline mode
I have download a .m3u8 extension video file which is not encrypted
and I have played that video.
This video is download in the formate of .movpkg extension format.
I have download this video using AVAsset download Session
But in the case of encrypted video
I can download the .m3u8 extension video and this video get saved in extension of .movpkg
The issue rise when the saved video is played without any internet connection I know this reason for this because the decryption key is not available for it. So that video can decrypt and play in player level it self
Is there any possibility to play the saved video file without using internet(offline)
Do I need to use the apple fair play concept to play m3u8 video?
if so how can implement it in server side?
Have anyone used apple fair play concept?
How can implement the fair play concept in the FFmpeg Convertor?
Is there any method to override the key delivery mode in AVPlayer?

Extract CMSampleBuffer from HLS video stream on iOS

How can I save what AVPlayer is currently playing (both video and audio) from Live HLS stream?
I know how to load and play m3u8 video file using AVPlayer.
Please note that the HLS stream is live and not Video on demand so cannot use AVAggregateAssetDownloadTask In the perfect scenario will get CMSampleBuffer objects which can save to file easily. Also AVPlayerItemOutput is not entirely an option because I am unable to see how will get the audio channel.
Seems not possible with the current SDK. I've implemented it using ffmpeg

HLS stream and save Partially - Swift

I am streaming m3u8 url in an iOS application.
I am referring Apple HLS Catalog sample application.
I could stream and add offline the url.
Also playing from the offline is possible.
Is it possible to stream and save the video partially (eg:- user trying to stop the video, I need to save up the user cancelled part)

How to play video and audio extracted from mkv file in metro app

I have managed to read matroska container and able to extract video and audio streams from a mkv file in my metro app. Now, I don't know how to feed the streams for playing. I want to know the concept of throwing media data on display. I have another option to repack the video and audio(s) with subtitles into MP4 container which will be played by MediaElement by default but that will not look like having a matroska codec in my metro app.
So, basically my question is: How to use MediaElement or any display graph to read the video and audio pulled out from any video container.
Please guide me. Thanks.

Ipad play incomplete video file

I am trying to get the MPMovieplayerController to play incomplete video files. I want to use this so a user can download a part of a movie and play it offline. I am using ASIHTTP so i can resume downloads, if i try to play the temporary the player does nothing and and i get no errors. Also i registered for the MPMoviePlayerContentPreloadDidFinishNotification notification but it does not get dispatched. When the file is done downloading i can play it correctly.
Is it possible to somehow play incomplete video files? Alternatives to MPMovieplayerController are also welcome if that offers a solution.
I needed to download the first part op the mp4 file and the last part before i was able to play the video. So i am now downloading the first mb of the file then the last mb then the middle part and now i can play the file while it is not complete.

Resources