interop
interop copied to clipboard
Audio + Video API volume control
Description
All browsers should allow for volume control from 0.0-1.0 for Audio + Video APIs.
iOS/iPadOS WebKit does not allow for volume control (it is "read-only").
Use cases:
- Sound effects (varying % or just want at less than 100% without having to re-export sound)
- Background sounds that you want at less than 100% for ambiance
- Volume controls around video elements
Special care needs to be added for iOS/iPadOS only to turn volume off via mute
since setting volume to zero doesn't work.
The explanation that has been given, is that Apple thinks the user should always be in control of volume via physical buttons for iPhones and iPads. Apple only upholds this value for the web and does not include this restriction on its apps including Apple Music.
Specification
WHATWG
Additional Signals
Is there any possibility to control HTML5 audio volume on IOS HTML5 Video Volume