Skip to content

Commit

Permalink
fix(FEC-14361): Fix for not showing captions (#808)
Browse files Browse the repository at this point in the history
### Description of the Changes

https://kaltura.atlassian.net/browse/FEC-14361

### CheckLists

- [ ] changes have been done against master branch, and PR does not
conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] test are passing in local environment
- [ ] Travis tests are passing (or test results are not worse than on
master branch :))
- [ ] Docs have been updated

Co-authored-by: quantumInverter <[email protected]>
  • Loading branch information
DanilMolchanovKaltura and quantumInverter authored Jan 29, 2025
1 parent 035ee9e commit 5051487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2617,10 +2617,10 @@ export default class Player extends FakeEventTarget {
* @returns {void}
*/
private _updateTextDisplay(cues: Array<VTTCue>): void {
if (this._config.text.useShakaTextTrackDisplay && !(this._config.text.useNativeTextTrack || this._config.text.enableCEA708Captions)) {
if (this._config.text.useShakaTextTrackDisplay) {
this._applyCustomSubtitleStyles();
}
if (!this._config.text.useNativeTextTrack && !this._config.text.useShakaTextTrackDisplay && !this._config.text.enableCEA708Captions) {
if (!this._config.text.useNativeTextTrack && !this._config.text.useShakaTextTrackDisplay) {
processCues(window, cues, this._textDisplayEl, this._textStyle);
}
}
Expand Down

0 comments on commit 5051487

Please sign in to comment.