From 8dd6e306a26dfdff83880d67d1223cc12303e844 Mon Sep 17 00:00:00 2001 From: Ryne Chaloux Date: Thu, 18 Feb 2016 14:37:50 -0800 Subject: [PATCH] [PBW-4400] removed unneeded ios workaround --- src/main/js/main_html5.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/js/main_html5.js b/src/main/js/main_html5.js index 73a5d51b..71cd208b 100644 --- a/src/main/js/main_html5.js +++ b/src/main/js/main_html5.js @@ -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; } } };