aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/p2p-media-loader/hls-plugin.ts7
-rwxr-xr-xscripts/generate-code-contributors.ts2
2 files changed, 2 insertions, 7 deletions
diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.ts
index 37242befe..672a85d0b 100644
--- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts
+++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts
@@ -102,9 +102,8 @@ class Html5Hlsjs {
102 private dvrDuration: number = null 102 private dvrDuration: number = null
103 private edgeMargin: number = null 103 private edgeMargin: number = null
104 104
105 private handlers: { [ id in 'play' | 'addtrack' | 'playing' | 'textTracksChange' | 'audioTracksChange' ]: EventListener } = { 105 private handlers: { [ id in 'play' | 'playing' | 'textTracksChange' | 'audioTracksChange' ]: EventListener } = {
106 play: null, 106 play: null,
107 addtrack: null,
108 playing: null, 107 playing: null,
109 textTracksChange: null, 108 textTracksChange: null,
110 audioTracksChange: null 109 audioTracksChange: null
@@ -177,7 +176,6 @@ class Html5Hlsjs {
177 // See comment for `initialize` method. 176 // See comment for `initialize` method.
178 dispose () { 177 dispose () {
179 this.videoElement.removeEventListener('play', this.handlers.play) 178 this.videoElement.removeEventListener('play', this.handlers.play)
180 this.videoElement.textTracks.removeEventListener('addtrack', this.handlers.addtrack)
181 this.videoElement.removeEventListener('playing', this.handlers.playing) 179 this.videoElement.removeEventListener('playing', this.handlers.playing)
182 180
183 this.player.textTracks().removeEventListener('change', this.handlers.textTracksChange) 181 this.player.textTracks().removeEventListener('change', this.handlers.textTracksChange)
@@ -622,9 +620,6 @@ class Html5Hlsjs {
622 620
623 this.hls.attachMedia(this.videoElement) 621 this.hls.attachMedia(this.videoElement)
624 622
625 this.handlers.addtrack = this._updateTextTrackList.bind(this)
626 this.videoElement.textTracks.addEventListener('addtrack', this.handlers.addtrack)
627
628 this.hls.loadSource(this.source.src) 623 this.hls.loadSource(this.source.src)
629 } 624 }
630 625
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts
index e4fb4fd91..54e5f421b 100755
--- a/scripts/generate-code-contributors.ts
+++ b/scripts/generate-code-contributors.ts
@@ -30,7 +30,7 @@ async function run () {
30 console.log(' * [Marie-Cécile Godwin Paccard](https://mcgodwin.com/)') 30 console.log(' * [Marie-Cécile Godwin Paccard](https://mcgodwin.com/)')
31 31
32 console.log('\n\n# Icons\n') 32 console.log('\n\n# Icons\n')
33 console.log(' * [Feather Icons](feathericons.com/) (MIT)') 33 console.log(' * [Feather Icons](https://feathericons.com) (MIT)')
34 console.log(' * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg` by Material UI (Apache 2.0)') 34 console.log(' * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg` by Material UI (Apache 2.0)')
35 console.log(' * `support` by Chocobozzz (CC-BY)') 35 console.log(' * `support` by Chocobozzz (CC-BY)')
36 console.log(' * `language` by Aaron Jin (CC-BY)') 36 console.log(' * `language` by Aaron Jin (CC-BY)')