jquery.jwplayer
jquery.jwplayer copied to clipboard
uncaught exception: Constructor not called: jwPlayer.play
When trying to use your jquery plugin, I am unable to use any functions after creating my player. Even the demo code returns the same error. The videos load correctly, I am just unable to destroy, pause, play, etc via code...
Relevant code samples:
HTML [code]
[/code] ... [code]
[/code]
JQUERY
var JWPlayerCreated = false;
var loadJWFLV = function (flvURL){ $("#jwplayer").css("display","block");
if (JWPlayerCreated){
$('#jwplayer').jwPlayer('load', flvURL);
}
else{
$('#jwplayer').jwPlayer({
swf: 'jw/player.swf',
file: '../' + flvURL,
height: 438,
width: 780
});
JWPlayerCreated = true;
}
}
$("a","#videoMenu").click(function(){
var x = $(this).attr("rel");
$("span","#playerHeader").empty().append(lbl[lang][x]);
var module = $(this).attr("src");
if(version < 9){
//loadWMV(module);
}else{
//loadWMV(module); // Windows Media Player
//loadVideo(module); // FlowPlayer
loadJWFLV(module); // JWPlayer
}
}
);
Same problem here. Any update on this?
Same here. I'm sure the syntax is correct. Via Firebug console I tried the same command on my site and also on yours, of course changing the IDs for proper reference, and it worked on yours, and not mine.
Brief scenario: Using Joomla CMS with VideoJS for html5. I have chosen JW Player for IE Flash fallback, and generate the player with this code:
"The jwplayers load fine, but can't be accessed via jQuery. Yes, all IDs are unique.
Please help! Willing to pay for help, important large frontward facing internet site.
email me: steven at vml dot com
If anybody finds out what causes this, please let us know. I'm wondering if the player must be instantiated or created by the plugin, not via another method like SWF object...
Seems like this version does not work with new versions of jwPlayer. I found only one solution - download player.swf from the demo. It works for me. Version on the demo 5.1.897.