Skip to content

Commit

Permalink
fix(FEC-12350): external captions shown while cc button disabled (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
lianbenjamin committed Sep 22, 2022
1 parent 9d467e1 commit 788d983
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,10 @@ export default class Player extends FakeEventTarget {
this._engine.hideTextTrack();
this._resetTextDisplay();
const textTracks = this._getTextTracks();
const activeTextTrack = textTracks.find(track => track.active === true);
if (activeTextTrack && activeTextTrack.external) {
this._externalCaptionsHandler.hideTextTrack();
}
textTracks.map(track => (track.active = false));
const textTrack = textTracks.find(track => track.language === OFF);
if (textTrack) {
Expand Down

0 comments on commit 788d983

Please sign in to comment.