I'm writing an HTML/CSS jQuery Mobile app to be native-compiled for iPhone, Android and Blackberry using PhoneGap Build.
The app needs to play very short spoken word audio snippets, possibly in MP3 format. What are the options for maximum cross-device compatibility?
I understand there are problems with the HTML5 audio tag, and I've had a look at jPlayer but can't get it to work on iOS 4 where the player is added to a panel element.
Thanks
you will have to use the default media functions which included with phonegap itself ..
here is the link to the doc file
http://docs.phonegap.com/en/1.3.0/phonegap_media_media.md.html#Media
Related
I am developing the ionic project(with angular Js ) where I need to play live streaming videos and also mp4 videos for that I tried HTML5 video tag but it wont work on ios.(It is working in Android Mobile Application)
thanks
VLC cannot run as a web plugin on Android or iOS because those platforms don't support the concept of a web plugin. You need to use a native component. VLCKit and libvlc-for-android are known to run correctly in mixed application environments and we are aware of multiple clients interfacing the native ObjC or Java interfaces through a bridge from a JS context.
I am developing a live video streaming solution for a client with the following requirements:
- Stream live video to high-end Android and iPhone devices, from a mobile-optimized web app (NOT native apps)
- The video should not be full screen but partial screen, so that other HTML content can be displayed below the video
So my question is, what is the video format/technology that allows live video streaming in both devices? I've heard about HLS but I am not sure it plays in both devices.
And also, is there a way to prevent the video from going full screen? I've come across this in SO http://broken-links.com/tests/video/, but it's for on demand video. Could it also apply for live video streaming?
Thanks in advance
You should set allowsInlineMediaPlayback attribute of your UIWebView instance to YES for iOS.
From Apple's UIWebView reference page:
allowsInlineMediaPlayback
A Boolean value that determines whether HTML5 videos play inline or
use the native full-screen controller.
#property(nonatomic) BOOL allowsInlineMediaPlayback Discussion The
default value on iPhone is NO.
In order for video to play inline, not only does this property need to
be set on the view, but the video element in the HTML document must
also include the webkit-playsinline attribute.
For Android, AFAIK default behaviour of Android's WebView is not triggering media player with fullscreen. You should be able to use WebView as is.
You can get information about supported video formats with those links:
iOS Media Layer Supported Video Formats
Android Supported Video Formats
There are two major industry standards, I guess it won't be a problem if I understand your concerns correctly.
Hope that helps.
I would like to know which are all format of a video that should be converted when you upload a video on mobile device (Android and Iphone).
This is for a Titanium Appcelerator App.
User should be able upload video from mobile (Android or Iphone) and this should be visible by both device.
In html5 the format of video should be .webm, .ogg and .mp4 (and flv for old browser).
For mobile app?
Thanks
This has already been asked.
What video formats are compatible with the assets library?
Essentially it depends on your device, but I would just stick with H.264 AAC and you will most likely be fine, either way this all depends on your server side to convert the video to a universal format and deliver, this is not so much a mobile / TItanium question.
In creating a mobile version of a site, I'm running into problems with the video not playing on the iPhone. I'm using the JW Player plugin and believe it has something to do with range request headers. My hosting company enabled range request headers but after it still wasn't working, they noticed that the videos were being passed via PHP so the apache header modifications had no affect.
I saw this question: Using php to output an mp4 video, but I'm not sure how implement that within WordPress.
Has anyone else been able to get videos working on an iPhone browser using the JW Player plugin?
I am not able to play video on mobile device which is .3gp container and H.263 / AMR_NB encoded. I just want to play my website videos in mobile device also just like youtube.com. I want to use RTMP and HTTP both. My requirement is as follows-
Which codec and container will be best?
Should I use FLV to play video on mobile device?
RTSP required or can be use RTMP?
Is NetStream and NetConnection methods different from Flash Player in Flash Lite Player?
How to play 3gp video using RTMP stream ie. ns.play(“mp4:mobilevideo.3gp”, 0, -1, true) is it ok or any thing else required?
For mobile browser and computer browser, can I use single player or I have to make different player for computer browser and mobile browser?
It would be better if I can do it with single player for both mobile and computer browser.
Sample code required for testing. If you can.
I got below article in which they mention that we can play video 3gp container in mobile also. Please find the article.
Articles URL-
http://www.hsharma.com/tech/articles/flash-lite-30-video-formats-and-video-volume/
http://www.adobe.com/devnet/logged_in/dmotamedi_fms3.html
Thanks
Sunil Kumar
We've established that it's possible to play mp4 within a 3gp wrapper, but only if the file has an mp4 extension, and for Flash 9 onwards.
See http://www.adobe.com/eeurope/products/hdvideo/faq/
Hi I am not able to play video on mobile device which is .3gp container and H.263 /AMR_NB encoded. I just want to play my website videos in mobile device also just like youtube.com. I want to use RTMP and HTTP both. My requirement is as follows-
Which codec and container will be best?
Should I use FLV to play video on mobile device?
RTSP required or can be use RTMP?
.flv is not supported on all devices that support FL 3.0. Please refer to the following threads in the nokia discussion forum:http://discussion.forum.nokia.com/forum/showthread.php?p=731458#post731458 regarding transcoding in 3gp to be used in the rtsp server.
You can use http for flv.
Is NetStream and NetConnection methods different from Flash Player in Flash Lite Player?
I have no clue about this.
How to play 3gp video using RTMP stream ie. ns.play(“mp4:mobilevideo.3gp”, 0, -1, true) is it ok or any thing else required?
For the rtsp, you need to setup the darwin streaming server, which is pretty simple to install and then place your 3gp/mp4 files there. There is no need for a netstream object for this. You can simply use the 'play' method with the instance of the video object:
.play(<3gp_Or_mp4__file>);
For mobile browser and computer browser, can I use single player or I have to make different player for computer browser and mobile browser? It would be better if I can do it with single player for both mobile and computer browser.
No clue.
I would recommend you to look at the 3gp players official website at http://www.3gp-player.com .
You can read and get some information about playing 3gp video files on both Desktop/Laptop computers, and cellphones/mobile devices.
Most of the tools offered there are free, and so is the information about all the 3gp player / converters.
Hope this helps you.