1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-17 10:46:00 +02:00

Added isReady = false on unloadTech. fixes #214, fixes #211

This commit is contained in:
Steve Heffernan 2013-04-04 11:06:13 -07:00
parent 6bd4651767
commit 143e53febc

View File

@ -173,7 +173,7 @@ vjs.Player.prototype.createEl = function(){
// Enforce with CSS since width/height attrs don't work on divs
this.width(this.options_['width'], true); // (true) Skip resize listener on load
this.height(this.options_['height'], true);
// Wrap video tag in div (el/box) container
if (tag.parentNode) {
tag.parentNode.insertBefore(el, tag);
@ -237,6 +237,7 @@ vjs.Player.prototype.loadTech = function(techName, source){
};
vjs.Player.prototype.unloadTech = function(){
this.isReady_ = false;
this.tech.dispose();
// Turn off any manual progress or timeupdate tracking