Triggering audio with button press in Chrome 66 (not autoplay)

Just put this on the click function:

	//resume audio context of any Hype version
	for (var key in window) {
		if (key.substring(0, 9) == "HYPE_gac_"){
			window[key].resume();
		}
	} 

Update: here is an example
unlockAudioOnClickHandler.hype.zip (69,3 KB)

Hint: You only need to unlock once so if you have a splash screen with a button/tap and sound+unlock… then that should do it for the rest of the document.

1 Like