Indeed, I use the Flash based player on the computer browsers only:
Code:
<object type="application/x-shockwave-flash" data="$fileUrl" width="$width" height="$height" id="dewplayer" name="dewplayer">
<param name="movie" value="$fileUrl" />
<param name="flashvars" value="mp3=$mediaFileUrl&autostart=$autostart" />
<param name="wmode" value="transparent" />
</object>
On smartphones I use instead the HTML5 javascript based player, which works fine on smartphones:
Code:
<img id="$playPauseButtonDomId" src="$buttonPlayImage" title="" />
<script type="text/javascript">
var audioPlayer$uniqueId = new Audio("$mediaFileUrl");
document.getElementById("$playPauseButtonDomId").addEventListener('click', function(){
if (audioPlayer$uniqueId.ended || audioPlayer$uniqueId.paused) {
document.getElementById("$playPauseButtonDomId").src = "$buttonPauseImage";
audioPlayer$uniqueId.play();
} else {
document.getElementById("$playPauseButtonDomId").src = "$buttonPlayImage";
audioPlayer$uniqueId.pause();
}
}, false);
audioPlayer$uniqueId.addEventListener('ended', function(e) {
audioPlayer$uniqueId.removeEventListener('ended', arguments.callee, false);
document.getElementById("$playPauseButtonDomId").src = "$buttonPlayImage";
}, false);
</script>
But, as I said at the start of this thread, the Flash based player is not working on the latest Firefox, nor on my Chromium 18.0 Linux.
So I just tried something else, I tried to use also on the computer browsers, the HTML5 javascript based player.
But it works on neither Firefox nor Chromium.
Bookmarks