I have a web application which will be used in 2 android tablets browser( 2.2. and 3.0)
In this, I would like to play some audio files of any android supported formats
I have gone through the link below and tried the mp3 file with bit rate 320 kbps. But it is not playing.
I tried .wav ,avi and mp3 files, which play on my PC but not in the android browser.
I tried audio and video tags in HTML 5, both are not working.
<audio controls="true">
<source src="Media/testaudio.mp3"/>
Your browser does not support HTML5 audio.
</audio>
I read that audio tag is not supported in android 2.2,but it is not working on 3.0 too.
The video tag is supported from Android 2.0+. But still it is not working.I tried it like this.
<video width="320" height="240" controls="controls" onclick="this.play();" >
<source src="Media/sample_mpeg4.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
User Name
Member
204 Points
168 Posts
Audio files not playing on Android browser
Sep 28, 2011 03:55 PM|LINK
I have a web application which will be used in 2 android tablets browser( 2.2. and 3.0)
om/guide/appendix/media-formats.html
In this, I would like to play some audio files of any android supported formats
I have gone through the link below and tried the mp3 file with bit rate 320 kbps. But it is not playing.
http://developer.android.c
I tried .wav ,avi and mp3 files, which play on my PC but not in the android browser.
I tried audio and video tags in HTML 5, both are not working.
<audio controls="true">
<source src="Media/testaudio.mp3"/>
Your browser does not support HTML5 audio.
</audio>
I read that audio tag is not supported in android 2.2,but it is not working on 3.0 too.
The video tag is supported from Android 2.0+. But still it is not working.I tried it like this.
<video width="320" height="240" controls="controls" onclick="this.play();" >
<source src="Media/sample_mpeg4.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
Appreciate the Help
Thanks
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: Audio files not playing on Android browser
Sep 28, 2011 04:31 PM|LINK
Hi,
Do check the following links!
http://stackoverflow.com/questions/2596383/does-android-2-1s-browser-support-html-5-and-what-video-format-does-it-play
http://stackoverflow.com/questions/1711078/html5-video-element-on-android
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
User Name
Member
204 Points
168 Posts
Re: Audio files not playing on Android browser
Sep 28, 2011 06:41 PM|LINK
I tried the following format from the above link..
<video id="video" autobuffer height="240" width="360">
<source src="Media/sample_mpeg4.mp4" type="video/mp4">
<source src="Media/BigBuck.webm" type="video/webm">
</video>
JS
var video = document.getElementById('video');
video.addEventListener('click',function(){
video.play();
},false);
But i got a error.... video is null...
Any suggestions?
Thanks
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: Audio files not playing on Android browser
Sep 29, 2011 03:56 PM|LINK
Hi,
Check the link below for Miro Video Converter! Convert the video to WebM format and try again!
http://diveintohtml5.org/video.html
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
User Name
Member
204 Points
168 Posts
Re: Audio files not playing on Android browser
Sep 30, 2011 05:19 PM|LINK
Hello roopesh...
i tried the WebM format too.. no luck...
Thanks
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: Audio files not playing on Android browser
Oct 01, 2011 04:34 PM|LINK
Hi,
The below link should solve your problem!
http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
User Name
Member
204 Points
168 Posts
Re: Audio files not playing on Android browser
Oct 21, 2011 09:05 PM|LINK
Hello Roopesh,
I tried HTML( Audio and Video), but unfortunately didn't work. Finally, Yahoo Media Player worked for me.
Thanks for your suggestions.
davispolk
Member
2 Points
1 Post
Re: Audio files not playing on Android browser
Oct 28, 2011 06:42 AM|LINK
I think this format is not support by the android browser...
visit the following links which gives some idea about this android browser....
http://www.pcworld.com/article/206278/battle_of_the_android_browsers.html
http://blog.templatemonster.com/2010/05/13/5-android-web-browsers/