Skip to content

Commit

Permalink
Add selected language to HlsCaptionsSelectorPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ferserc1 committed Dec 13, 2023
1 parent 0490d74 commit 277db56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/es.upv.paella.hlsCaptionsSelectorPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default class HlsCaptionsSelectorPlugin extends MenuButtonPlugin{

itemSelected(itemData) {
this._hls.subtitleTrack = itemData.index;
this._selected = this._tracks.find(t => t.index === itemData.index)?.language;
PopUp.HideAllPopUps(false);
}
}

0 comments on commit 277db56

Please sign in to comment.