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:
parent
b66ef806e5
commit
fe6946d451
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user