Hi Intel
I am trying to add a simple player to my app but it is not working on the app. It works fine on the browser please help. I am using appstarter and I don't know if I have to add some intel code in order for my little code to work on Android. Some reason it is working on iPhone. Let me know if I have to add something on the code below or appstarter itself please, Thank you in advance.
<audio id="myAudio">
<source src="audio/song1.mp3" type='audio/mp3'>
<source src="audio/song1.ogg" type='audio/ogg; codecs=vorbis'>
Your user agent does not support the HTML5 Audio element.
</audio>
<button type="button" onclick="aud_play_pause()">Play/Pause</button>
<script>
function aud_play_pause() {
var myAudio = document.getElementById("myAudio");
if (myAudio.paused) {
myAudio.play();
} else {
myAudio.pause();
}
}
</script>