How to protect mp4 file on IsolatedStorage of Windows Phone 7? - windows-phone-7.1

I don't know how to protect video file on IsolatedStorage.
I encrypted mp4 file then I have to decrypt it to play on MediaElement.
After decrypted mp4 file can not be protected.
What will I do to protect mp4 file absolutely?

Related

How can I play local encrypted files on ios which are encrypted with AES

I am looking for a solution to play the locally downloaded encrypted media files. The server is sending the encrypted media files. I want to play without decrypting the whole file and then write the file at any other place. Files are not downloaded via HLS streaming. Encrypted files are mp3 or mp4 files which are encrypted. Decrypting the whole file first then playing the file causing memory-related issues.

What is the UTI (Uniform Type Identifier) of an AAC audio file on iOS?

I need to know what the Uniform Type Identifier is for an AAC audio file.
Context: I'm building an audio player app that plays DRM'd AAC files using HLS. I want to support offline playback, but I don't want to use AVFoundation's offline stuff (via AVAssetDownloadTask) because it'll delete the files out from under me when it needs to reclaim disk space (according to this WWDC 2016 session). So I'm downloading the files myself and using AVAssetResourceLoaderDelegate (walkthrough here) to serve files from the disk instead of the network when I want to. But the player just buffers forever. I tried serving a plain, unecrypted AAC file with no HLS involvement, and it failed the same way. I tried a plain, unencrypted MP3 file, and it worked. I changed the UTI provided to loadingRequest.contentInformationRequest.contentType in resourceLoader:shouldWaitForLoadingOfRequestedResource: from the correct audio.mp3 to audio.aac and it failed the same way. From this I infer that what I need is the correct UTI for an AAC file.
Update: Interestingly, public.aifc-audio and public.aac-audio work to play an unencrypted AAC audio file, but not the encrypted one with HLS involved.

Save and Play DRM secured audio file in ios

I am developing music iOS app in which I am fetching audio file from server in bytes format and save in device in mp3 format. So when I am going to play audio file it is working fine. In some cases Audio file is DRM secured on server. I have one password but don't know how to use it.
My question is how to save and play DRM secured file?

Stream MP4 video onto iPhone directly from S3?

I have a bunch of MP4 files on S3. Is it possible to stream MP4 video content onto iPhone directly from S3? If so, how can I do this? If I can't do this, what options do I have for streaming video to iPhone? (e.g. run HLs streaming server on EC2? pseudo-streaming or progressive media download?)
Cloudfront can stream video but apparently only using RTMP protocol which is not supported natively by iOS. I'd like to stream natively (make things easier). Thanks all.
You can stream, but the video file must be segmented into .ts files and an .m3u8 file that lists the segments. See https://developer.apple.com/streaming/

darwin not able to stream uploaded 3gp files from rails

I am trying to upload 3gp files into my rails application on ami instance using paperclip.
I then move that 3gp file to darwing streaming server folder to stream it.
To have a better identification of file names , it has been prepended with some ids'.
Now when i am trying to play that video through its rtsp link on mobile, i am not able to play that video. Interestingly, when i download that video to my local machine and play it with say vlc - i am able to do that.
what could be missing here.
To stream a 3gp or mp4 file via darwin streaming server, you must ensure that the media file is hinted.
To add hint track to a 3gp or mp4 file, you can use MP4Box
http://gpac.wp.institut-telecom.fr/mp4box/
mp4box -hint sample.3gp

Resources