Skip to content

Commit

Permalink
fix(player): Changed hidden to disabled mode to avoid displaying …
Browse files Browse the repository at this point in the history
…native captions on MS Edge
  • Loading branch information
rafa8626 committed Dec 18, 2018
1 parent a3334e2 commit 9dac443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controls/captions.ts
Expand Up @@ -522,7 +522,7 @@ class Captions implements PlayerComponent {
*/
private _prepareTrack(index: number, language: string, trackUrl: string, defaultTrack: boolean = false) {
this.trackUrlList[language] = trackUrl;
this.trackList[index].mode = 'hidden';
this.trackList[index].mode = 'disabled';
if (defaultTrack) {
this.default = language;
this.button.classList.add('op-controls__captions--on');
Expand Down

0 comments on commit 9dac443

Please sign in to comment.