Skip to content

uncaught exception: Constructor not called: jwPlayer.play #3

Description

@crichard

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
    }

}

);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions