diff --git a/src/js/media/html5.js b/src/js/media/html5.js
index 6f1a522fac..bcf54ea4e2 100644
--- a/src/js/media/html5.js
+++ b/src/js/media/html5.js
@@ -22,6 +22,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
this.features['fullscreenResize'] = true;
vjs.MediaTechController.call(this, player, options, ready);
+ this.setupTriggers();
var source = options['source'];
@@ -54,7 +55,6 @@ vjs.Html5 = vjs.MediaTechController.extend({
}
});
- this.setupTriggers();
this.triggerReady();
}
});
diff --git a/src/js/player.js b/src/js/player.js
index 4f625f91f8..ae243115c8 100644
--- a/src/js/player.js
+++ b/src/js/player.js
@@ -247,10 +247,10 @@ vjs.Player.prototype.loadTech = function(techName, source){
// Pause and remove current playback technology
if (this.tech) {
this.unloadTech();
+ }
- // if this is the first time loading, HTML5 tag will exist but won't be initialized
- // so we need to remove it if we're not loading HTML5
- } else if (techName !== 'Html5' && this.tag) {
+ // get rid of the HTML5 video tag as soon as we are using another tech
+ if (techName !== 'Html5' && this.tag) {
vjs.Html5.disposeMediaElement(this.tag);
this.tag = null;
}