I've got a pretty silly bug in Chrome with the HTML5 audio element. Basically if I try to set the currentTime immediately after setting the source and then try to play, it throws an exception. This only occurs in Chrome.
Plunker : https://plnkr.co/edit/GZm9nZkmrt0ZvX6D85Qy?p=preview
<audio id="audio_0" src = "https://d2zsljmk3mm9kv.cloudfront.net/assets/samples/56c5a7c03f511270e90cb9373ea22a43d6f37082/112eeb9ddba02ec9"/>
$(document).ready(function(){
$("#audio_0")[0].currentTime = 80;
$("#audio_0")[0].play();
});
I've tried all sorts of combinations on trying to play after seekend, oncanplaythrough etc events but no luck. The only way to get it to work is to wait long enough for it to load the entire file which is just not acceptable.
Has anyone been able to get around this? Note that jPlayer does the same thing.
Thanks