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:
@ -74,7 +74,7 @@ const captions = {
|
|||||||
|
|
||||||
// Watch changes to textTracks and update captions menu
|
// Watch changes to textTracks and update captions menu
|
||||||
if (this.config.captions.update) {
|
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
|
// Update available languages in list
|
||||||
|
Reference in New Issue
Block a user