play media from download in progress - stream

i'm using AFNetworking to download media files. Audio and Video. I use AFDownloadRequestOperation to get a better way to pause and resume large downloads.
i found lots of tutorials for download and for stream media but i need a way to start download and play the unfinished download from disk to get a better experience while playing large files.
does anybody know how to do this?
As Player i use AVPlayer with AVPlayerItem and AVAsset
if there is another way without this 3 Objects it would be great.

Related

Playing encrypted audio offline

I download, encrypt and save audio files for offline playing in my app.
The problem is when I play them from offline, I don't want to decrypt entire file before playing because it can take some time. I want to decrypt bunch of start data, let player play, and just add more data during playing.
But I can't find any AVPlayer methods to achieve that.
After some research I found AVAssetResourceLoaderDelegate but I am confused if it will solve my problem and how to achieve it.
Any solutions?

Swift: How to play the video and download at the same time

Currently in our iOS Application, we are downloading the video and then playing it, which is indeed taking a lot of time and killing the user experience. Now, we want to shift to directly stream the video or play the video while it is downloading.
I have tried using AVAssetResourceLoaderDelegate. I doesn't play the video at all and displays the mime type as text/html. Maybe because I am loading from a secured URL with headers.
Can someone suggest me a good way where I can stream or Play the video while downloading it. Would be glad if someone suggest a way to Stream the video's directly from the URL.

Is there a way to start playing an MP4 video file while downloading in iOS?

I have a big MP4 video file in Dropbox. Is there a way to start playing that while downloading in iOS?
Thanks
Use an NSURLConnection to async download the content of the video URL into a local file and after a certain fraction has been downloaded (approx. 2 MB), play the file. NSURLConnection with connection:didReceiveData delegate method does the job

How to play an in downloading progress video file in 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!

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