Mediaelement.js Firefox Flash Plugin - controls not loading

If I put just the mp3 file on the audio element, Firefox should fall back to the Flash plugin (as in the MediaElement.js home page). However, in my case, a MediaElement wrapper is created, an inline plugin is created, but no controls are added (e.g. play / pause). I spent a lot of time trying to debug this, but I was unable to determine where it went wrong. There is no error in the console and no error callback is triggered. Any ideas on what I could try would be greatly appreciated!

UPDATE - RESOLVED: Argh! There is a problem with the path to the flashmediaelement.swf file. I had to use an absolute url. For example:

$('audio').mediaelementplayer({
        plugins:['flash'], pluginPath:'http://www.mysite.com/path/to/libs/mediaelement/'});

      

+3


source to share





All Articles