1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

Fixed an error when disposing a tech using manual timeupdates. closes #1312

This commit is contained in:
Matt Osborn 2014-06-25 17:40:25 -07:00 committed by Steve Heffernan
parent b66ef806e5
commit fe6946d451
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ CHANGELOG
* Fixed an IE11 issue where clicking on the video wouldn't show the controls ([view](https://github.com/videojs/video.js/pull/1291))
* Added a composer.json for PHP packages ([view](https://github.com/videojs/video.js/pull/1241))
* Exposed the vertical option for slider controls ([view](https://github.com/videojs/video.js/pull/1303))
* Fixed an error when disposing a tech using manual timeupdates ([view](https://github.com/videojs/video.js/pull/1312))
--------------------

View File

@ -290,13 +290,14 @@ 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
if (this.manualProgress) { this.manualProgressOff(); }
if (this.manualTimeUpdates) { this.manualTimeUpdatesOff(); }
this.tech.dispose();
this.tech = false;
};