Change to using addtrack and removetrack listeners since 'change' didn't trigger in firefox for embedded captions (may also be a hls.js issue)
This commit is contained in:
parent
812e07b734
commit
f58e23b325
@ -74,7 +74,7 @@ const captions = {
|
||||
|
||||
// Watch changes to textTracks and update captions menu
|
||||
if (this.config.captions.update) {
|
||||
utils.on(this.media.textTracks, 'change', captions.update.bind(this));
|
||||
utils.on(this.media.textTracks, 'addtrack removetrack', captions.update.bind(this));
|
||||
}
|
||||
|
||||
// Update available languages in list
|
||||
|
Loading…
x
Reference in New Issue
Block a user