Skip to content

1681-engine / index / elementVolumeLocked

Function: elementVolumeLocked() ​

ts
function elementVolumeLocked(): boolean;

Defined in: src/audio/music/musicVoice.ts:25

True where an <audio> ignores volume (iOS WebKit), so music has to go through Web Audio to be faded at all. Newer iOS reads a set volume back while the speaker ignores it, so the probe alone misses it: an iPhone, iPod or an iPad posing as a Mac is named first.

Returns ​

boolean

Released under the MIT License.