Hacker News new | ask | show | jobs
by foreigner 1834 days ago
I just hacked together a workaround for this very thing myself. You can call play() in a click handler but immediately pause(), and then call play() again on the same Audio element later when your scanner succeeds.