[Android] Any way to get title music to play without initial touch?

TehGuy

Sometimes the 1s and 0s make sense
Member
Joined
Jun 27, 2013
Messages
29
Reaction score
14
First Language
English
Primarily Uses
RMMV
Heyo, ended up having to redo my android stuff since Crosswalk's no longer in development (as of 7 months ago) and apparently the android webview runs things just fine

Anyways, the only problem that still remains is that title music (and from googling around, any music or sounds) will not start playing until you touch the screen somewhere at least once which ends up being unfortunate if you happen to use a controller. Since I've been out of the loop for a long time (and because googling has gotten me nowhere), I'm just wondering if a way has been found to fix this

Dunno if it matters, but all the audio sits in an expansion file/OBB (even tho things go just fine after a poke of the screen, so I wouldn't think this is an issue) and the device is a Samsung Galaxy S6 running Nouget 7.0 / API Level 24. Can also provide screenshots of the Android Studio source I'm working with if it's needed
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
306
First Language
English
Primarily Uses
RMMV
I think the reason it does not auto-play properly is because it has to load first. I think that if you manually pre-loaded the audio file (via js plugin) and included a listener and callback function that it may play immediately after finishing its load.

Alternatively, you may be able to perform the pre-load during the "MadeWithMV" scene; I expect by the time the splash screen were finished displaying that the audio file would have had sufficient time to load.
 

TehGuy

Sometimes the 1s and 0s make sense
Member
Joined
Jun 27, 2013
Messages
29
Reaction score
14
First Language
English
Primarily Uses
RMMV
Oddly enough, after a bunch of fiddling with other things regarding Google Play it decided to just work; IDK, will have to run it through more trials
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top