I've a web app which uses HTML5 player to play audio mp3 files hosted on the server. I want to use PhoneGap to convert it to iPhone/Android apps. I want users to cache the audio files on the device. It would be really nice if I can somehow encode it and save it on the device rather than flat mp3 files. Just wondering that how can I do on iPhone/Android using PhoneGap.
Related
I'm using Ionic to create an app. In this app, there is the possibility to create a audio file. For ios there will be a .m4a file. For Android there is a .3gp file. These files are saved on a server. Other users can get these audio files and listen them. So far, so good.
The issue is when a ios user records an audio file and a android user wants to listen to this file. Are there Ionic users out there that succesfully made a cross-platform audio sharing app?
I am developing an android application for Online Music streaming. I want to download MP3 files from the server and play that file when the user is offline. And the downloaded file can only be played through applicaion
please give your best solution
I have an app which is using android webview .i am able to stream video in webview .i want know how can i allow users to to save videos automatically in thier internal storage which they stream in webview on website ? Thanks in advance
Most videos streaming to a browser (PC or mobile) will not allow download as the owner of the video may not want to allow it be saved and copied etc.
Simple http progressive download may allow you to save the video in a regular browser by simply right clicking on it.
DRM protected video will generally use a video pipeline (a sort of 'path' through your device) that does not allow an application of any kind access the raw video - this is again is to avoid people making unauthorised copies.
If you think the video in your case is allowed to be copied then you may find it easier to write some functionality to act as the streaming client and save the file locally. You could also pass the received stream along to the media player or to a webview if you wanted to play the file in parallel to saving it.
I am working on a cordova android application which will display images and videos.I have the images and videos in the assets folder.I want to protect my resources.I don't want anyone to copy the resources.I have googled for the same and didn't get any proper solution.How to protect files in assets?
Is there any way to encrypt and store videos in assets folder and decrypt it during run time?
My video files will be maximum of 10 MB each file and there are 50 videos in the whole application.
You can definitely do this with DRM - it won't stop someone copying the video files, but as they are encrypted they will not be able to play them back without the correct key.
The process is roughly:
your content is encrypted before it is streamed or downloaded
when the user wants to playback the content the app must request a key for the content from owner of the content or the 'rights authority' (a service which handles keys for content)
The DRM system on the device will securely encrypt the content and play it back using the key it obtained. The video will not be stored in clear format at any point.
Native Android DRM is explained here:
http://developer.android.com/reference/android/drm/package-summary.html
To use this with cordova I think you will have to create a Native plugin - I could not see any cordova DRM API. Alternatively, if you are able to stream the content using the new MPEG DASH format, then you could use a HTML5 video player which supports DRM, such as BitDASH (https://www.dash-player.com).
You need to be aware that all DRM and encryption systems are really just hurdles that make it harder to copy content - at the end of the day if you have a very high quality display and a very high quality camera to record the display, then no DRM protection will save you.
I need to develop application for Android which decrypts audio and video files saved on SDCARD
and plays them without saving on SDCARD or on phone.
Is there any way to do using standard Android MediaPlayern class?
Thanks, Costa.
The solution is to build HTTP server on the phone and play the files using the server.
There the link to server I used (and it worked good):
http://www.prasannatech.net/2008/10/simple-http-server-java.html
Thanks!