mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
@nickygerritsen fixed texttrack handling in IE10. closes #2481
This commit is contained in:
parent
d0e2ede27a
commit
33de0085ae
@ -103,6 +103,7 @@ CHANGELOG
|
||||
* @gkatsev moved default and player dimensions to style els at the top of HEAD el ([view](https://github.com/videojs/video.js/pull/2482))
|
||||
* @gkatsev removed non-default track auto-disabling ([view](https://github.com/videojs/video.js/pull/2475))
|
||||
* @gkatsev exported event helpers on videojs object ([view](https://github.com/videojs/video.js/pull/2491))
|
||||
* @nickygerritsen fixed texttrack handling in IE10 ([view](https://github.com/videojs/video.js/pull/2481))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -93,7 +93,7 @@ class Html5 extends Tech {
|
||||
let emulatedTt = this.textTracks();
|
||||
|
||||
// remove native event listeners
|
||||
if (tt) {
|
||||
if (tt && tt.removeEventListener) {
|
||||
tt.removeEventListener('change', this.handleTextTrackChange_);
|
||||
tt.removeEventListener('addtrack', this.handleTextTrackAdd_);
|
||||
tt.removeEventListener('removetrack', this.handleTextTrackRemove_);
|
||||
@ -184,7 +184,7 @@ class Html5 extends Tech {
|
||||
proxyNativeTextTracks_() {
|
||||
let tt = this.el().textTracks;
|
||||
|
||||
if (tt) {
|
||||
if (tt && tt.addEventListener) {
|
||||
tt.addEventListener('change', this.handleTextTrackChange_);
|
||||
tt.addEventListener('addtrack', this.handleTextTrackAdd_);
|
||||
tt.addEventListener('removetrack', this.handleTextTrackRemove_);
|
||||
|
Loading…
Reference in New Issue
Block a user