I have a video file that saved in fileManager encrypted, for security reason I don't want to save it or write it in filemanager without encryption. I would like to know can I play the video With Data. When I decrypt the file, the result become Data, so is there a way to play the video with Data?
Thanks
There is no way to play the video with data. You must write video data to temple directory and get url to play.
In case ensure security policy, you can delete the temple directory after play video
Related
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?
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?
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.
Problem:
I need to download mp4 video from media server and simultaneously feed the localhost httpserver (GCDWebServer) to enable video streaming.
What have i tried so far:
I am able to download a video file from media server and then provide the localhost url for streaming the video.
But this takes a lot of time in downloading. So i wanted to know if there is a way i can segment the video on the fly and keep updating the m3u8 file as and when my next segment is ready.
Ok, Why downloading? Basically i need to deal with a custom encrypted video file. So i need to download, then decrypt the stream and then feed to my local httpserver.
I hope i'm clear in the requirements.
I use an NSURLConnection to get a media file downloaded. While downloading I store the content at a NEMutableData and write it down to a cache file.
Now I want to play this file while downloading with AVPlayer (Not AVAudioPlayer) because it could be video.
At the time the AVPlayer get the URL to the cache file it looks like the player copy the state of the file because the player don't get any changes and after a few seconds it holds because of the end of data.
Does anybody has a better solution but to download everything first until start playing, or is there a way to give the AVPlayer an Internet NSURL and preload the rest while streaming?