diff options
author | Suman Bhattarai <sumanbh7@gmail.com> | 2019-12-03 10:34:27 -0700 |
---|---|---|
committer | Suman Bhattarai <sumanbh7@gmail.com> | 2019-12-03 10:34:27 -0700 |
commit | 42d72c530335b553319e114b675be337d326e0f3 (patch) | |
tree | 6e78db6e8fe2f027a1d11ef224f6498ba201826a /src | |
parent | 74e3990604698b1f2af3ed51e65b0ca820c1d624 (diff) | |
download | plyr-42d72c530335b553319e114b675be337d326e0f3.tar.lz plyr-42d72c530335b553319e114b675be337d326e0f3.tar.xz plyr-42d72c530335b553319e114b675be337d326e0f3.zip |
fix being unable to unmute autoplayed video on IOS
Diffstat (limited to 'src')
-rw-r--r-- | src/js/controls.js | 2 | ||||
-rw-r--r-- | src/sass/components/volume.scss | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/js/controls.js b/src/js/controls.js index 7afcd2c0..76b15dda 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -1380,7 +1380,7 @@ const controls = { } // Volume range control - if (control === 'volume') { + if (control === 'volume' && !browser.isIos) { // Set the attributes const attributes = { max: 1, diff --git a/src/sass/components/volume.scss b/src/sass/components/volume.scss index 82a6dd36..b89b4531 100644 --- a/src/sass/components/volume.scss +++ b/src/sass/components/volume.scss @@ -23,13 +23,6 @@ } } -// Hide sound controls on iOS -// It's not supported to change volume using JavaScript: -// https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html -.plyr--is-ios .plyr__volume { - display: none !important; -} - // Vimeo has no toggle mute method so hide mute button // https://github.com/vimeo/player.js/issues/236#issuecomment-384663183 .plyr--is-ios.plyr--vimeo [data-plyr='mute'] { |