I just exported my game to attempt to deploy on mobile. When I run the exported game in web browser I get errors when it tries to load and play audio files, always of type "ogg". The exported directory shows that indeed only the m4a audio files were exported from the project, and I read somewhere that mobile devices would not use ogg anyway and would use m4a. So, while the export contents seems like it should be fine then, the executing code still looks for the non-existent ogg versions and therefore gives errors.
Is there some option I am not seeing in the export or some plugin of system setting to tell the code to look for the m4a file and not the ogg file?
you as the developer need to provide both ogg AND m4a files for all music that you add in - the editor needs both and cannot convert them itself.
That is because different devices have different build-in codecs, and for some devices the m4a are required to work, but for other devices the ogg are required to work.
So if you go to the project directory (not the deployed directories), are those sounds available in both formats? If not then you need to use a program to convert the audio files (audacity for example is a free converter).
If they are available in both formats, then you need to give us their filenames as examples as well as screenshots of the console (press F8) when the error message comes up - there are a few other problems that might trigger a similiar looking error message, for example if the name of the file itself does not follow networking rules.
So I am only using the assets that come with RPG Maker MV out of the box and this appears to include copies of both .m4a and .ogg of each audio file. It just so happens that when I export it ti only does the m4a. Is this an error of the export? It is trivial to move the .ogg files manually to the export locations, but not ideal of course as one may export many times.
Then this should not happen, unless you have one of several other problems.
1) please give us the entire filepath to your project, from drive letter to index.html - something like c:\folder1\folder2\projectname\index.html
2) in the editor, go to help - about and give us your editor version number
3) in your project directory, look for the rpg_core.js file in the js directory and open it with a text editor. Then tell us the version number in the title line (if there is no version number, it's 1.0)