[Earwurm] Investigate if we can improve unlock()
with synthetic event
#25
Labels
🧐 Question
Further information is requested
unlock()
with synthetic event
#25
Right now, our
.unlock()
feature simply queues up anAudioContext
state change and performs the "unlock" once a user interaction is detected in thedocument
.Can we take this one step further and
dispatch
our own event?This would allow autoplay functionality on page load, rather than until the user has done something.
I will try exploring this here:
https://codesandbox.io/s/earwurm-auto-unlock-3shm7k?file=/src/App.tsx
The text was updated successfully, but these errors were encountered: