diff --git a/bower.json b/bower.json index 9262d01df..15f276b68 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "video.js", "description": "An HTML5 and Flash video player with a common API and skin for both.", - "version": "4.4.0", + "version": "4.4.3", "main": [ "dist/video-js/video.js", "dist/video-js/video-js.css" diff --git a/src/js/player.js b/src/js/player.js index 7e7eb22f2..87bd5e31b 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -1048,6 +1048,7 @@ vjs.Player.prototype.src = function(source){ this.el_.appendChild(vjs.createEl('p', { innerHTML: this.options()['notSupportedMessage'] })); + this.triggerReady(); // we could not find an appropriate tech, but let's still notify the delegate that this is it } // Case: Source object { src: '', type: '' ... } @@ -1279,10 +1280,13 @@ vjs.Player.prototype.userActive = function(bool){ // // When this gets resolved in ALL browsers it can be removed // https://code.google.com/p/chromium/issues/detail?id=103041 - this.tech.one('mousemove', function(e){ - e.stopPropagation(); - e.preventDefault(); - }); + if(this.tech) { + this.tech.one('mousemove', function(e){ + e.stopPropagation(); + e.preventDefault(); + }); + } + this.removeClass('vjs-user-active'); this.addClass('vjs-user-inactive'); this.trigger('userinactive');