jquery - setSrc not updating new audio (.mp3) in firefox -
i trying load new audio when audio ends. somehow doesn't work in ff.
$(document).ready(function(){ $('audio').mediaelementplayer({ success: function(media, node, player) { media.addeventlistener('ended', function(){ media.src = 'audio/4typesslide9.mp3'; media.load(); media.play(); }, false); } }); }); this works fine in chrome. (i have not tested in other browsers yet)
please me this. stuck @ point loooong time...
this error get:
http "content-type" of "audio/mpeg" not supported.
it doesn't work in firefox because firefox not play mp3's. you'll need add <source> element .webm version
Comments
Post a Comment