HTML5 music on mobile

Jeffm2Jeffm2 Member, PRO Posts: 148

I am having issues with an HTML5 game that is supposed to be played on a mobile device. For some reason the music does not seem to play. Sound effects are fine and if you play the game in a desktop browser the music works. the game is here https://spots.augusta.edu/cii/Path_to_Graduation/

I am on an iphone 12 with the latest IOS

Any insight is appreciated!

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,159

    I haven't looked yet, but you may want to put music playback in a timer. There's a bit of an issue with what the browser allows in terms of sound and interaction. If music is a root behavior on the first scene, sometimes it gets blocked because it's an attempt at sound playback before interaction (Safari's attempt to block unwanted automatic sounds).

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,159

    So I need to get out of a noise coffee shop, but I think I do hear the music, it just starts for a bit and then stops. We'll take a deeper look next week.

Sign In or Register to comment.