In mobile apps sound should be able to autoplay automatically.
In browsers sound cannot autoplay until the first input event, as a deliberate measure to prevent web pages annoying you.
Is this for mobile browsers only? We have the limitation in nw.js as well but you only have to touch once for the whole game. Is this still the case? Or do you have to touch for each new layout?
Desktop browsers are starting to implement the restriction too. NW.js should not be affected though.
This is extremely bad news for people doing adventure games since there are a lot of layout changes and a lot of instances where there might be a cutscene at a beginning of a layout where no input action is required by the user. Adding a press to continue or whatever to every new layout pretty much makes for an annoying user experience.
Also i noticed atm when using a Gamepad instead of Keyboard Input, Music will basically never start playing at all unless you click or use the keyboard. This is unfortunate, but maybe something Google can do something about?
Really too bad i was hoping to maybe make a browser version of my game as well...
EDIT: Just to make sure i understand correctly, are we talking about touching the screen ONCE for a game or of touching the screen each time a new layout is loaded? Because the former is already the case in NW.js and that i can live with.
Referring to this (admittedly old) thread where Alex Francois had a similiar problem with users having to touch the screen in every layout before any streamed audio started playing:
You just need one input event to enable all audio playback. It doesn't have to be every layout, just once on startup.
Develop games in your browser. Powerful, performant & highly capable.
Oooh phew, then it's no worry :D Sorry for the panic!