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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -