Skip to content

Commit

Permalink
[PBW-4400] removed unneeded ios workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rchalooyala committed Feb 23, 2016
1 parent 9125eb1 commit 8dd6e30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/js/main_html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,7 @@ require("../../../html5-common/js/utils/environment.js");
this.setClosedCaptionsMode = function(mode) {
if (_video.textTracks) {
for (var i = 0; i < _video.textTracks.length; i++) {
//Workaround for iOS since it doesn't hide captions when their mode is set to disabled.
if (OO.isIos && mode == "disabled") {
_video.textTracks[i].mode = "hidden";
} else {
_video.textTracks[i].mode = mode;
}
_video.textTracks[i].mode = mode;
}
}
};
Expand Down

0 comments on commit 8dd6e30

Please sign in to comment.