Removed captions being read by screen readers

This commit is contained in:
Sam Potts
2015-08-11 22:38:06 +10:00
parent bf0c81b484
commit 60c53a5894
7 changed files with 18 additions and 14 deletions

View File

@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
// plyr.js v1.3.2
// plyr.js v1.3.3
// https://github.com/selz/plyr
// License: The MIT License (MIT)
// ==========================================================================
@ -928,6 +928,7 @@
rel: 0,
showinfo: 0,
iv_load_policy: 3,
cc_load_policy: (config.captions.defaultActive ? 1 : 0),
cc_lang_pref: "en",
wmode: "transparent",
modestbranding: 1,
@ -1028,7 +1029,7 @@
function _setupCaptions() {
if(player.type === "video") {
// Inject the container
player.videoContainer.insertAdjacentHTML("afterbegin", "<div class='" + config.selectors.captions.replace(".", "") + "' aria-live='assertive' aria-relevant='additions text'><span></span></div>");
player.videoContainer.insertAdjacentHTML("afterbegin", "<div class='" + config.selectors.captions.replace(".", "") + "'><span></span></div>");
// Cache selector
player.captionsContainer = _getElement(config.selectors.captions).querySelector("span");