Can someone help with this?
I’m working on a widget for iBooks Author and I’m having issues with audio playback on iOS not acting like it does on macOS.
The audio elements in this project are triggered with javascript functions.
I have it working great on desktop browsers, but on iOS (with either Hype Reflect or running in a mobile browser on iPhone or iPad Pro) it has three problems:
-
the top and bottom buttons don’t mute the audio like it’s supposed to (this works fine on desktop).
-
the metronome button on the bottom far right is supposed to mute the click, but it doesn’t affect the click at all (this feature also works great on desktop).
-
When the play button is clicked, the playback timing of the three tracks (Top audio, Bottom Audio and Click Track) seems a bit off. (Again, on desktop, the three audio tracks synchronize great and appear to start simultaneously as intended). There seems to be a lag between tracks on iOS.
Here are my questions:
- Are these issues due to iOS limitations?
- Is there some way I can alter the functions I wrote to work on iOS?
I’ve included the demo - please let me know if you have any ideas on how to get this to work.
Thanks so much!
Bach-iPhoneX-demo.hype.zip (1.2 MB)