Once installed on your device, tap to launch your game. Don't touch your screen -- does your BGM play? If it doesn't tap your screen. Does it play now?
this test is only valid with projects that use the title screen and a bgm --
Thanks!
when i lunched the game in title screen there is no bgm but after i touch the screen it work
Compiled through XDK, when I launch app bgm plays without touching the device.
Interesting... thank you guys for the input thus far. If anyone else can do this for me please keep posting and how you are compiling wouldn't hurt either.
I'll post a sample APK in a bit for anyone that wants to participate in testing.
What we need to figure out is...
- Is this issue caused by compilation or RMMV?
- Is this issue device related?
- Is the trigger from touch input vs joypad vs keyboard?
Can't submit a bug report till we have enough information
When the engine uses the Html5Audio object, it doesn't call the _onLoad function that sets off actually playing the audio unless the screen has been unlocked. This is likely what is causing the problem on some devices.
You can see this in the Html5Audio._onLoadedData function in rpg_core.js.
Thanks, I'll have to investigate further.
Tyvm for providing the function call and the location btw.
The same for me dude. Music only starts when I touch the screen
Yes I contacted both of you (Faytless and Tsuki) in order to help me with this bug.
Much love 🤘
This is pretty standard for HTML5 games on mobile. It's been a while since I worked with them but I recall issues with being able to play audio before input is received on most devices.
To everyone whom has to tap the screen to get sound to play, can you please open your SDK manager and tell me what API's you have installed?
I have a theory that might fix this -- just need more info
When I delete those lines, the game, once installed, returns a Type error "undefined is not a function"
Those lines are really for me, don't delete them!
On a side note, I'm taking a small break from support for a bit -- family crisis;(