
jwplayer.load() fail with error f(...).plugins is undefined
Hello,
I'm using jwplayer in my web app and it's working most of the time. I'm running it on Firefox 39.0 Ubuntu 14.04.
The player is used to play HLS videos and here is the setup used to instanciate the player:
jwplayer("jwplayer-wrapper").setup({
width: "100%",
height: "100%",
file: video_url,
image: "",
icons: false,
controls: false,
}).
onReady(function () {
...
}).
onPlay(function () {
...
}).
onTime(function(callback){
...
}).
onBufferChange(function(buffer) {
...
}).
onBuffer(function() {
...
}).
onSetupError(function(callback){
...
}).
onQualityLevels(function(){
...
});
After the setup, in the 'onReady' event I want to change the loaded video by using:
jwplayer("jwplayer-wrapper").load({
file: video_url,
image: "",
});
Sometime -- what appears to be random -- an error occurs:
TypeError: f(...).plugins is undefined
Stack trace:
f.api/n.load@/jwplayer.js:128:309
loadVideo@XXX
f.api/n.dispatchEvent@/jwplayer.min.js:134:170
f.api/n.playerReady@/jwplayer.min.js:135:226
f.playerReady@/jwplayer.min.js:135:421
I tried to catch that error to resetup the player and I the get the error:
"There was an error calling back an event handler" TypeError: t is null
Stack trace:
f.embed@/jwplayer.js:75:496
f.embed<@/jwplayer.js:95:308
f.api/n.setup@/jwplayer.js:126:310
loadVideo@XXX
f.api/n.dispatchEvent@/jwplayer.js:134:170
f.api/n.playerReady@/jwplayer.js:135:226
f.playerReady@/jwplayer.js:135:421
Is that a known error? (I could not find anything in the support so far...)
Is there anyway to fix/avoid it?
Thanks for your help !