Embed: onreadylist array was defined in the prototype and therefor shared between player instances
This commit is contained in:
parent
dfde7828e4
commit
94b8fcd2d6
7 changed files with 8 additions and 7 deletions
|
@ -81,7 +81,6 @@ MistPlayer.prototype.getElement = function(tag){
|
||||||
this.element = ele;
|
this.element = ele;
|
||||||
return ele;
|
return ele;
|
||||||
};
|
};
|
||||||
MistPlayer.prototype.onreadylist = [];
|
|
||||||
MistPlayer.prototype.onready = function(dothis){
|
MistPlayer.prototype.onready = function(dothis){
|
||||||
this.onreadylist.push(dothis);
|
this.onreadylist.push(dothis);
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@ mistplayers.dashjs = {
|
||||||
if ((options.host.substr(0,7) == 'http://') && (source.url.substr(0,8) == 'https://')) { return false; }
|
if ((options.host.substr(0,7) == 'http://') && (source.url.substr(0,8) == 'https://')) { return false; }
|
||||||
return (('MediaSource' in window) && (location.protocol != 'file:'));
|
return (('MediaSource' in window) && (location.protocol != 'file:'));
|
||||||
},
|
},
|
||||||
player: function(){}
|
player: function(){this.onreadylist = [];}
|
||||||
};
|
};
|
||||||
var p = mistplayers.dashjs.player;
|
var p = mistplayers.dashjs.player;
|
||||||
p.prototype = new MistPlayer();
|
p.prototype = new MistPlayer();
|
||||||
|
|
|
@ -24,7 +24,7 @@ mistplayers.flash_strobe = {
|
||||||
|
|
||||||
return Number(version) >= Number(mimesplit[mimesplit.length-1]);
|
return Number(version) >= Number(mimesplit[mimesplit.length-1]);
|
||||||
},
|
},
|
||||||
player: function(){}
|
player: function(){this.onreadylist = [];}
|
||||||
};
|
};
|
||||||
var p = mistplayers.flash_strobe.player;
|
var p = mistplayers.flash_strobe.player;
|
||||||
p.prototype = new MistPlayer();
|
p.prototype = new MistPlayer();
|
||||||
|
|
|
@ -27,7 +27,9 @@ mistplayers.html5 = {
|
||||||
} catch(e){}
|
} catch(e){}
|
||||||
return support;
|
return support;
|
||||||
},
|
},
|
||||||
player: function(){},
|
player: function(){
|
||||||
|
this.onreadylist = [];
|
||||||
|
},
|
||||||
mistControls: true
|
mistControls: true
|
||||||
};
|
};
|
||||||
var p = mistplayers.html5.player;
|
var p = mistplayers.html5.player;
|
||||||
|
|
|
@ -11,7 +11,7 @@ mistplayers.img = {
|
||||||
if ((options.forceType) || (options.forceSource) || (options.forcePlayer)) { return true; }
|
if ((options.forceType) || (options.forceSource) || (options.forcePlayer)) { return true; }
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
player: function(){}
|
player: function(){this.onreadylist = [];}
|
||||||
};
|
};
|
||||||
var p = mistplayers.img.player;
|
var p = mistplayers.img.player;
|
||||||
p.prototype = new MistPlayer();
|
p.prototype = new MistPlayer();
|
||||||
|
|
|
@ -21,7 +21,7 @@ mistplayers.silverlight = {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
player: function(){}
|
player: function(){this.onreadylist = [];}
|
||||||
};
|
};
|
||||||
var p = mistplayers.silverlight.player;
|
var p = mistplayers.silverlight.player;
|
||||||
p.prototype = new MistPlayer();
|
p.prototype = new MistPlayer();
|
||||||
|
|
|
@ -42,7 +42,7 @@ mistplayers.videojs = {
|
||||||
|
|
||||||
return ('MediaSource' in window);
|
return ('MediaSource' in window);
|
||||||
},
|
},
|
||||||
player: function(){},
|
player: function(){this.onreadylist = [];}
|
||||||
};
|
};
|
||||||
var p = mistplayers.videojs.player;
|
var p = mistplayers.videojs.player;
|
||||||
p.prototype = new MistPlayer();
|
p.prototype = new MistPlayer();
|
||||||
|
|
Loading…
Add table
Reference in a new issue