I have recently created an iPhone app where i recorded voice in .ima4 format. This application uploads these recordings to my web server, where user can play these recorded files.
But i don't know how to decode or play .ima4 files in a website.
Its better to use html5 for audio playing
Consider this link for workAround for ima4 format
Refer soundmanager link for playing audio in html
Related
I want to download the audio and video content which is seen in my app (In app download) just like we download the videos in youtube and can be watched offline. I also want the downloaded content to not show in my file manager and gallery.
I researched about downloading the files but dont have an idea about how to show only in app and no where else like youtube.
A couple of months back, I came across a client requirement who wanted to build a feature to download and restrict video files in Android App, just like YouTube, Netflix, Amazon Prime does with us.
The steps need to be implemented is as follows :
Download the video from the URL
Encrypt the video file
Decrypt the video file at the time of playing
I use RNFetchBlob for download the video from the urls and RNFS is used for file access.
Requirement :
I need to encrypt the video file and decrypt the video file from the App.
If anyone knows the solution please help me......
I need to encrypt the video file and decrypt the video file from the App.
I was looking for a plugin that could play both audio and video files and was happy to come across mediaelement.js. I host all of my audio and video from Dropbox. The audio is playing fine but the video does not, just hangs on the loading screen.
I saw another thread posted here with no response. Below is the shortcode I'm using:
[video src="https://www.dropbox.com/s/udprb5o5p3n6uu8/WCN.mp4" width="242" height="136" poster="http://wellsmartsolutions.com/video/video.png"]
Not other plugins are active that would be causing any conflict. What am I doing wrong?
Try this URL instead: https://dl.dropboxusercontent.com/s/udprb5o5p3n6uu8/WCN.mp4. I've changed the domain to dl.dropboxusercontent.com per https://www.dropbox.com/help/201. This links directly to the video rather than a web page that previews the video.
I'm using phonegap/cordova 2.1 and my app has locally stored assets (on the device) which need to be encrypted on build and decrypted in memory when used in execution. The app is for iPad only.
For the videos I want to implement something similar to http://codebycoffee.com/2012/01/08/decrypting-http-streaming-video-with-nsurlprotocol where mediafilesegmenter is used to segment and encrypt each video file and then a custom encrypted file url protocol serves the key for each video when the video player requests the m3u8 file.
My problem is that I can't seem to play m3u8 files by using the html5 video tag and phonegap/cordova. I have even created unencrypted video segments with the use of mediafilesegmenter as a test. These can be played by opening the m3u8 file with VLC in OSX but when using the video tag in phonegap/cordova I get 'loading...' message followed by a popup saying "The operation could not be completed"
OK so it turns out that m3u8 files have to be served over HTTP and I have gone down the route of bundling a cocoahttpserver https://github.com/robbiehanson/CocoaHTTPServer in with the app. This way I can request the video streams with:
<video src="http://127.0.0.1:12345/path.m3u8"
I am trying to load my video into a webview.
When I use this link. It won't work.
http://www.youtube.com/v/066PWBKrh6k&autoplay=1
But when I try this link. It's the same video but the link is a little bit different. It won't work. Any idea what the problem can be?
http://www.youtube.com/watch?v=066PWBKrh6k&autoplay=1
Kind regards.
You are linking to a flash file. IOS wont play flash. the /v/id path links to a swf for clarification, while the watch link is something IOS might have a handler for to accept standard youtube links but play them in the youtube app. What you really want is a straight url to a mp4 file / h264 which ios will happily play in it's media controls. Youtube will not give you this because the video isn't branded, the branding is an overlay of their flash / html5 player. Your best bet is to use the actual youtube javascript api to embed a html5 player, or at least something compatible with IOS. Or just link to an address IOS has a registered handler for.