Skip to content

Commit

Permalink
Merge pull request #4190 from kaltura/SUP-24147
Browse files Browse the repository at this point in the history
fix(SUP-24147):  player displaying captions for entry even if the captions plugin is disabled
  • Loading branch information
semarche-kaltura authored Jan 29, 2021
2 parents 741323e + 8eb47aa commit 42979d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/KalturaSupport/components/dualScreen/dualScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@
this.bind( 'onplay', function () {
if (!isOverlayScreenOpen && _this.canManipulateControlViews()) {
_this.controlBar.enable();
// Added this in order to remove the Embedded Captions that are showing on the second screen
// As the HLSjs is only disabling it for the main player
if (!_this.embedPlayer.getKalturaConfig('closedCaptions', 'showEmbeddedCaptions')) {
var vid = _this.secondPlayer.playerElement;
var textTracks = vid.textTracks;
for (var i=0; i < textTracks.length; i++){
textTracks[i].mode = "disabled";
}
}
}
} );
this.bind( 'onpause ended playerReady', function () {
Expand Down

0 comments on commit 42979d8

Please sign in to comment.