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
}
}
);
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");
}
$("a","#videoMenu").click(function(){
var x = $(this).attr("rel");
$("span","#playerHeader").empty().append(lbl[lang][x]);
var module = $(this).attr("src");
);