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
259
Reaction score
71
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
259
Reaction score
71
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

I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.
We start in 5 minutes!

Forum statistics

Threads
102,935
Messages
996,069
Members
134,386
Latest member
Mrbees
Top