WebAudioContextRunner Op
This op is deprecated!
It will not receive any updatesResumes the Web Audio context (unmute on Chrome / iOS)
Summary (oneliner)
Some browser have a strict autoplay policy. In Google Chrome and mobile iOS audio cannot be played unless the playback was initiated by a user gesture (click / tap). To free the audio context from the so called suspended
state, a user interaction is needed which triggers the ResumeAudioContext
op.
It has two modes – in the default one Show Overlay: true
it will show an overlay over the cables canvas with a play button when the audio context is suspended.
When Show Overlay
is set to false
you have to manually take care of the user interaction (e.g. by adding a button yourself), registering a click / touch even listener and finally triggering Resume
on this op.
- Ops.Extension.Deprecated.WebAudioContextRunner
- Extension Op - Visible to all users
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
No op example found on this server
INPUT PORTS
Shows a button to unblock the audio context when set to true
(only when it is blocked)
If Show Overlay
is set to true
you don’t need to connect this. It is only needed when set to false
and needs to be manually triggered after a user interaction.
OUTPUT PORTS
The current Web Audio state, updated whenever it changes (via event listener), either running
or suspended
Patches using WebAudioContextRunner
Changelog
Ops.WebAudio.WebAudioContextRunner renamed to Ops.Deprecated.WebAudio.WebAudioContextRunner | pandur - 2021-09-21 09:21 |