I'm trying to use the JPlayer (http://www.happyworm.com/jquery/jplayer/) jQuery plugin and having some trouble using it when it falls back to the Flash SWF. In that case I hit an error m.fl_play_mp3 is undefined
which I've traced back to possibly a problem with the path to the SWF file. However, I've put the full path to the SWF directly in the embed
tag, it still doesn't work. When I copy that full path in the src
into a browser window, I get the Flash object. So what's the best way to debug next?
Is there a way I can verify that the < embed> tag actually was able to load the Flash file?
Can I introspect what methods the compiled SWF exposes?
UPDATE: I checked the Firebug Net tab, and the SWF file is downloaded. So there must be another problem. The error happens in the jPlayer.js file and I hit this error when I try this demo: http://www.happyworm.com/jquery/jplayer/0.2.5/demo-07.htm. I'm using Firefox 3.6 on Snow Leopard. The line that fails is the fourth one in the snippet below:
play: function(e) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_play_mp3(); // error occurs here
if(r) {
$(this).trigger("jPlayer.setButtons", true);
}
}
UPDATE 2: I was able to get around this problem by feeding the jPlayer a mp3 file instead of a wav file. Doesn't answer my question, but at least fixes this problem.