Merge pull request #1629 from sumanbh/ios-show-volume

IOS - Fix being unable to unmute auto-played videos
This commit is contained in:
Sam Potts 2020-01-14 07:31:34 +00:00 committed by GitHub
commit 28a1098c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

2
src/js/controls.js vendored
View File

@ -1378,7 +1378,7 @@ const controls = {
}
// Volume range control
if (control === 'volume') {
if (control === 'volume' && !browser.isIos) {
// Set the attributes
const attributes = {
max: 1,

View File

@ -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'] {