johndyer/mediaelement — Issue #414: Android 2.3.5 player won't autoplay after setSrc
Author: pudpoh
Created: 2012-03-05 12:03:38+00:00
State: open

I have a page where I have lots of 30 second audio clips, when someone clicks a play button I use the following code to change audio src and start the audio clip playing.

player.pause();
player.setSrc('someaudioclip.mp3');
player.load();
player.play();

This works fine in every browser I've tried it in except Android, the clip does actually load but an incorrect time of 01:40:00 is shown. If you press the play button on the player a few times the clip then starts playing. If you remove the player.play(); command it works fine if you then just press the play button manually so this seems to be an issue with setting the player playing in Android.