MV working in the browser

Here is MV working as HTML5.

http://areath.com

We exported as windows and uploaded the www folder in that output folder. I did have an "unexpected <" error, but that was something funky with my web server. Let me know if you get stuck and I will help you out with the HTML5/Canvas version.

btw this is the default code with our title on it... so don't expect anything awesome yet 😀
Is your music also not working too?

This is mine oddly enough no music/sounds I think my proxy is stripping it. 

http://stonelegion.com/kane/RPGTEST/

EDIT: Your music loaded for me after I refreshed 🙂
wow, that's slow loading. But well done on getting it up there 🙂


People reported on the demo that music took a while to start playing.
It worked. But first time it crashed saying error loading GameFont or something like that. There were sounds but no music.
Yeah just tested Mine again yours works fine with sound on my PC. Mine does not. Though mine on my tablet works fine with sound. A bit strange lol. 
Is your music also not working too?

This is mine oddly enough no music/sounds I think my proxy is stripping it. 

http://stonelegion.com/kane/RPGTEST/

EDIT: Your music loaded for me after I refreshed 🙂
You are getting a 404 on your music. That is why it is not working.

music.png
on windows edge sound play instant on firefox and chrome so much delay... i run the game and ten minutos and nothing of sound on that browsers

problem here is that the android export convert sounds to m4a and the js files are requesting .ogg

[IMG]https://i.gyazo.com/36920556acec4797e7befe62722db152.png[/IMG]

bug maybe?

if you copy manually all ogg sounds to the audio folder you fix the problem
I would suggest you use Windows Export. That is what I did. The music files might come out right.
or you can change the source file

[IMG]https://i.gyazo.com/6883a6622287d928ec42ad49c6583201.png[/IMG]

the blue colored line, I change OGG for m4a becose the publish function don't copy ogg music files and sounds to the proyect output
Just tried it in Vivaldi and sounds play instantly. It's rather slow in Firefox, though.
The staff was saying you should not export as mobile for html5 support. Also I would avoid changing the core files as much as possible as that could make a mess later.
Thanks for the info. Good tips friend. I'm not planning to make a browser game really anyways more of a test 🙂
Beyond this, no sense that the core game check a function that returns results using sound files that are not copied into the project.
or you can change the source file

6883a6622287d928ec42ad49c6583201.png


the blue colored line, I change OGG for m4a becose the publish function don't copy ogg music files and sounds to the proyect output
I'd recommend against this. The desktop and web clients use ogg for a reason. That reason being they are smaller. Mobile required m4a because Apple doesn't support the ogg format. Android, however, should.
wizmaster - is that a bug in the code?


Why would it say "if this, then m4a, otherwise, m4a"?


oh - never mind - I see that's a change you've made.


Yes, please don't do that. Find out why it's not working (confirm that it's not because you've used the wrong export option) and fix it. Don't change correct code to be incorrect to get around an issue that's caused by something else.
original code says 

AudioManager.audioFileExt = function() { if (WebAudio.canPlayOgg() && !Utils.isMobileDevice()) { return '.ogg'; } else { return '.m4a'; }};But not  ogg's files its copied into the proyect when you export for android/ios

[IMG]https://i.gyazo.com/bc2b19f557a5ff8bee2d9f985952456d.png[/IMG]

no, isnt a bug, the android export, dont copy ogg files becose are dont needed for a mobile device.
Android and iOS are mobile devices, so should use the .m4a files. I think if you want to play in browser you are using the wrong export option.
wow, that's slow loading. But well done on getting it up there 🙂

People reported on the demo that music took a while to start playing.

Yea I noticed a initial delay for the music as well, took awhile to load such for some reason, other then that, pretty cool. Once the music does "eventually load lol, the music does run smooth however, no choppiness or anything.
Android and iOS are mobile devices, so should use the .m4a files. I think if you want to play in browser you are using the wrong export option.
😀 you are right >D
So in short, if you're exporting for Android/iOS, don't try and open it in a browser? Is that the gist of it?

Original thread: https://forums.rpgmakerweb.com/threads/mv-working-in-the-browser.46368/