is it possible to play video using Html5, if possible please te;; me the process.
I have tryed with Video tag but it is not playing in emulator.
Video format is Mp4.
Please help on this if any one knows?
yes is possible, most mobile browsers support html5 (so video tag too), I suggest you to add also a .3gp file for older phones, as you can see here http://developer.android.com/guide/appendix/media-formats.html deconding 3gp is widely supported, you may pay attention to the codec, because decoding mp4 or 3gp encoded with H.264/AVC is not supported on older phones.
Set a WebChromeClient on the WebView. It should be able to read it (Froyo and later)
Related
I am currently developing a video streaming feature for one of my android apps. I am using android media framework for the purpose. Videos are streamed from an nginx server. Android recorded videos works fine but iOS recorded videos plays only the video not the sound.
It happens because the android support limited codecs in-built like mp3,mp4,mpeg.
While iphone support most of codecs.
What is the way to resolve this?
MP4 for video and MP3 for audio are widely accepted and work on both platforms.
So you need do some stuff at the server. Implement the ffmpeg library that will convert all the videos to MP4 and audio to MP3.
We are doing same mechanism to resolve this issue.
Some more information to understand the problem
Refer stackoverflow answer here
Hope This may help you to get the rid of your problem
Happy Coding!
We are working on an video streaming application in iOS and Android. We are using Wowza server. Application works fine from iOS to iOS and Android to Android. Means a video published from iOS device can be viewed on iOS device but not on Android device.
I know both Android and iOS support H.264 compression and we are publishing H.264 formatted stream. Here a bit confusion I thin H.264 is a compression technique and further defined by MP4, FLV etc please confirm.
What I think iOS publish stream something like .MOV defined H.264 stream which is not supported by Android that's why I think it doesn't work on Android. Please confirm.
Please suggest any way to play a video stream published through ios app to Android device.
There are two aspects to video files: The container and the encoding (or codec). H.264 is an encoding, and Android can deal with it, but Apple uses the QuickTime container format, which is similar to the MP4 container but apparently just different enough that Android can't handle it. Android can play MP4 files, and there are utilities to convert QuickTime to MP4, if that helps.
I have a web-view in an application and i use html5 tag.
I have had all kinds of issues on different android devices(samsung, sony, etc) with different android versions. Some could not play .mp4 and only played .m4v extensions. Another old tablet could only play mp4.
On an Xperia I had a special case. The webview couldn't play the video in html and played it in another custom video view(although this didn't bother me at all).
I need the videos to autoplay as soon as i open the webview(and have managed to do it on those few videos that work), and i have end-video event handlers that have to fire at the right time.
If anyone knows what video format + video and audio codification to use in order to have compatibility with all webviews on android please
Android webview and HTML5 player that works with the video codecs that Android supports (.mp4 is best for progressive video as it has by far the widest support), and it also supports .flv with flash plugin.
I want to play in .mov file in android. But videoview or mediaplayer doesn't support this meida format. How can i add the support to it?
In general Android doesn't support any other media formats than the one listed here. That being said, there are quite a few 3rd party players that enable playback of more exotic formats, most of which are probably based around ffmpeg. You might want to take a look at the open source Dolpin Player (actual player also available in the Play store) for Android for some more pointers - not sure if mov playback is supported by default though.
However, since most mov files are actually H.264 encoded these days, why not remultiplex (or re-encode, depending on the source) into an something that Android plays nice with, e.g. an mp4 container? In terms of video support on Android, H.264 is definitely the way, as also pointed out by the 'Video Encoding Recommendations' section in the earlier link.
I know this is an old question, but times changin'
Now we can use the ExoPlayer as a custom Video Player (like VideoView), it supports more formats than the VideoView on android.
It's really simple to use, just to play videos, but has the powerfull of customization if you needed.
https://google.github.io/ExoPlayer/
Give it a try and please respond if this helped you.
Just try to play it anyway. The Quicktime .mov specification is the predecessor of the MP4 spec. There are only differences in a few atoms/boxes. You will be able to play an MP4 as .mov and a .mov as MP4 in most cases.
I found that even the big named players such as MX Player, BS Player and VLC for Android would not play .mov files correctly, especially those that had been recoreded on my wifes iphone 4s.
The playback was very choppy on my Nexus 7 and Nexus 10 and totally unwatchable on my HTC One (M7).
The player I found and installed that will play old and new iphone movie clips (.mov) flawlessly was found freely available from the Google Play Store.
Here is the best player I have found and believe me I have tried lots:
Playing .MOV files on an Android Device
Hope this helps some of those people with an Android device wishing to view iphone .mov files.
I want to know whether following media are supported natively in Android or not I am not sure about Audio/Video as I am not well versed with media formats, so please enlighten me on following formats. I had already referenced http://developer.android.com/guide/appendix/media-formats.html
WMA file (As per my knowledge not supported)
Flash Media only Audio H.264 MP4( I dont know much about flash but only this that we can play flash file in android 2.2+ using webview)
Quick Time only Audio H.264 MP4
Real Media
Regards
Saurabh
You can find the list of supported formats here:
http://developer.android.com/guide/appendix/media-formats.html