![](https://secure.gravatar.com/avatar/9b0033b3d7b585120f38f5b477783508?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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.