
Not showing anything even the play button
This is my setup for jwplayer and a load function to change stream:
jwplayer("cobrowse").setup({
playlist: [{
sources: [{
file: 'tempfile'
}]
}],
width: '100%',
primary: "flash",
height: '100%',
rtmp: {
bufferlength: 0.1
},
events: {
onReady: function(event) {
console.log('onready');
console.log(event);
},
onPause: function(event) {
// this.play();
},
onError: function(event) {
console.log(event);
},
onSetupError: function(event) {
console.log('onSetupError');
console.log(event);
}
}
});
function changeJWurl(url) {
jwplayer().load([{file: url}]);
}
But, while I load it, the "cobrowse" element just became black and show nothing.
And I can't use .play(), .pause() and .stop().
That seems it doesn't setup because onReady haven't been fired.