aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-01-14 07:44:59 +0000
committerSam Potts <sam@potts.es>2020-01-14 07:44:59 +0000
commita2498acf7c1ea3d7e77fecc524a9130777ef9508 (patch)
treeac6c2503a12b74b8bbb746e586d80ac23274bf30 /src/js/controls.js
parent6ffaef35cf667d0e2e14227882a1a8e329b2c2c2 (diff)
downloadplyr-a2498acf7c1ea3d7e77fecc524a9130777ef9508.tar.lz
plyr-a2498acf7c1ea3d7e77fecc524a9130777ef9508.tar.xz
plyr-a2498acf7c1ea3d7e77fecc524a9130777ef9508.zip
Manually merge PR #1629
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index a0bbc991..15c82716 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -139,7 +139,7 @@ const controls = {
// Create hidden text label
createLabel(key, attr = {}) {
const text = i18n.get(key, this.config);
- const attributes = { ...attr, class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),};
+ const attributes = { ...attr, class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' ') };
return createElement('span', attributes, text);
},
@@ -1378,7 +1378,9 @@ const controls = {
}
// Volume range control
- if (control === 'volume') {
+ // Ignored on iOS as it's handled globally
+ // https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html
+ if (control === 'volume' && !browser.isIos) {
// Set the attributes
const attributes = {
max: 1,