shahjagat
asked on
How to play a audio file in android 2.2 browser
I have a web application which will be used in the android tablet browser running 2.2.
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.com/guide/appendix/media-formats.html
I tried .wav and avi 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.
I read that audio tag is not supported in android 2.2, but the video tag is supported from Android 2.0+. But still it is not working.
Appreciate the Help
Thanks
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.com/guide/appendix/media-formats.html
I tried .wav and avi 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.
I read that audio tag is not supported in android 2.2, but the video tag is supported from Android 2.0+. But still it is not working.
Appreciate the Help
Thanks
ASKER
I tried .swf file with embed tag...... which didn't work..
Is there any flash file formats other than .swf
Just to make sure that there is nothing wrong in the .swf file, can you provide me a sample .swf file, so that i can try it again..
Is there any flash file formats other than .swf
Just to make sure that there is nothing wrong in the .swf file, can you provide me a sample .swf file, so that i can try it again..
ASKER
Audio tag is not supported in 2.2 . But video tag should support from 2.0+
Even the video tag is not working.....
Here is the format i followed......
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
If the video tag is not supported in the browser, then it should give me the above message like, "Your browser does not support the video tag"
I see the message on my PC using internet explorer
But, when i check it on my Android Tablet, it does not give me any message, page tries to load the video and it just couldn't and gives me another error message "AN ERROR OCCURRED IN THE VIDEO"
Even the video tag is not working.....
Here is the format i followed......
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
If the video tag is not supported in the browser, then it should give me the above message like, "Your browser does not support the video tag"
I see the message on my PC using internet explorer
But, when i check it on my Android Tablet, it does not give me any message, page tries to load the video and it just couldn't and gives me another error message "AN ERROR OCCURRED IN THE VIDEO"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
YahooMediaPlayer worked for me..
HTML5 <audio> tag on Android
http://stackoverflow.com/questions/4895188/html5-audio-tag-on-android
Android 2.2 mobile OS supports full Adobe Flash 10.1
flash might be an option