Unlocking web audio context on mobile and iOS devices.
npm install --save unlock-audio-context
Pass in the audio context to unlockAudioContext()
unlockAudioContext(context)
const audioCtx = new AudioContext();
// unlock audio context
unlockAudioContext(audioCtx);
- 0.2.0 only call unlock once, remove mute flag
- 0.1.0 add mute flag
- 0.0.1 initial version