HTML5 Audio. How to get it to play with MV?

Nerdboy

Veteran
Veteran
Joined
Jan 4, 2017
Messages
78
Reaction score
7
Primarily Uses
hi, so i created a web app, uploaded it to site and using webview, but no bgm is being played, the sound efx play tho?

if i dont launch the app from icon and use normal browser and type in url the audio works great.

but when i launch in app using webview no bgm cuz how rpg maker handles audio.

is there a way to specifiy html5 audio tag like <audio></audio> without using a source src function? and using autoplay element? i looked through google but most of the solutions require sources like click here play audio type. but in RM MV since all audio is defined by the program you cant really specify sources.

what to do? any help plz.

Im using a web app cuz i cant get audio to play in native app either, and my game is 350mb so, i cant put it in store without using web app, which is only 2mb. and obb is hard to figure out to code if i split apk.
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
252
Reaction score
65
Primarily Uses
The Android/iOS version of your game will need to use .m4a audio files, not .ogg.
 

Nerdboy

Veteran
Veteran
Joined
Jan 4, 2017
Messages
78
Reaction score
7
Primarily Uses
zserv i know android and ios use m4a aac audio format not ogg. ogg is for pc

even though natively i dont know how to play m4a cuz i cant find working m4a converter

im hosting the game on a website. so it uses ogg i think but might playback mobile m4a not sure.

im using webview for android, it launches the game on the browser without any nav bar, so it looks like your playing it natively but requires internet connection wifi.
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
252
Reaction score
65
Primarily Uses
To reiterate here: android webview doesn't support ogg files. This is the reason why if you upload a game using only ogg files to a website, it will not play any audio on android devices with Chrome. If you're having success hearing those audio files in a browser on android, you're either using "request desktop site" which changes things, or don't have Chrome installed.

As for a converter, Audacity is a great free one.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

So I cloned an event in MV today.
Just got two custom tracks for my game. Things are shaping up nicely. :)
Remember, life is sh*t. But it will difinitely be less sh*t in the future! Stay happy everyone ^^ ...*continues to die inside*
Why is it that every time I take a short break from here, we get a new moderator?
Stream will be going live early today as I will be working on some music before I transition to art! When I switch to art, I will be focusing on making a new stream avatar~ Feel free to drop by!

Forum statistics

Threads
93,499
Messages
913,044
Members
123,036
Latest member
boredguy851
Top