HTML5 audio on swipe issue (iOS)

audio

(jangeltun) #1

I’m working on a HTML5 audio controller that starts audio automatically for each scene. For some reason the audio won’t play if I swipe to go to the next or previous screen in iOS. Any ideas why?

Hype HTML5 audio controls.hype.zip (328.3 KB)


#2

Audio can only start in response to a ‘tap’ in iOS, so the ‘play’ action for audio needs to occur in reaction to that gesture. If your audio start action occurs immediately ‘on scene load’ (using an instant scene transition, for example) after you tap a button to go to the next scene, iOS will allow it.