MV makeVideoPlayableInline is not defined (listed advices did not help)

The m4a format is only used on iOS and possibly Android, from my understanding. However, a web game could technically end up being played on iOS, so theoretically, a web build should contain both formats (I think).
I tested it and it worked in Chrome, but in Firefox I had to force the use of OGG because it simply didn't produce any sound:
JavaScript:
AudioManager.audioFileExt = function() {
    return '.ogg';
};


Only do this if you have full knowledge of how to back up or restore the original files. In my case, I only did it with the content that comes with RPG Maker, not the add-ons:

Spoiler
Another thing I did was reduce the quality of all the OGG files after deleting the M4A files using FFMPEG. So, it went from 163 MB to 27 MB. Since none of the songs have vocals, the quality isn't bad; I tested it on different devices
Something I had no trouble with, right-clicking, worked normally:
View attachment 365565

But I didn't even need to; I opened it with F12 by clicking on the address bar to avoid freezing and found the problem:
View attachment 365564
When uploading the files, specifically this "iphone-inline-video.browser.js" file is deleted, likely for violating some usage rule.

How to fix:
  1. In index.html, remove line 19:
    <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
  2. In rpg_core.js, remove line 2505:
    makeVideoPlayableInline(this._video);
Working:
View attachment 365566

Don't get me wrong, but let's say hypothetically you don't know how to open Notepad and locate a line using Edit --> Go to Line... (Ctrl + G)... install this plugin that's attached

Edit:
Another tip, I might be wrong, but in my tests none of my laptops required m4a, so web players probably won't need this format. As you can see in all the audio folders, each song has two formats; if you remove all m4a files, the size of your project will be drastically reduced.
Thank you a lot for the help, i will try that! And may your coffee never end.
Something I had no trouble with, right-clicking, worked normally:
View attachment 365565

But I didn't even need to; I opened it with F12 by clicking on the address bar to avoid freezing and found the problem:
View attachment 365564
When uploading the files, specifically this "iphone-inline-video.browser.js" file is deleted, likely for violating some usage rule.

How to fix:
  1. In index.html, remove line 19:
    <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
  2. In rpg_core.js, remove line 2505:
    makeVideoPlayableInline(this._video);
Working:
View attachment 365566

Don't get me wrong, but let's say hypothetically you don't know how to open Notepad and locate a line using Edit --> Go to Line... (Ctrl + G)... install this plugin that's attached

Edit:
Another tip, I might be wrong, but in my tests none of my laptops required m4a, so web players probably won't need this format. As you can see in all the audio folders, each song has two formats; if you remove all m4a files, the size of your project will be drastically reduced.
I am curious, could it be that the other files did not load the same way? I have an error with one image, "%zoe-sing" located at \img\characters. Also i am missing few sounds, they don't give an error, but simply do not play, for example "Gun1" from \audio\se
Is there a way to fix them like you did? Or it will not work with files that are crucial and used by the game?
Well, it's kind of strange to see a % sign in filenames, it can be confusing when requesting the file URL from the hosting, since it's used in situations like spaces becoming %20, ! becoming %21, and so on.

But in your case it seems like a slow file reading process, or a lack of permission, as I explained before, the M4A format is not currently used by Android browsers.
Not the m4a for sure, since i am using only the ogg. And what is weird, that the majority of audio functions just fine. Only few dialogue lines and pistol shot sound are missing for some reason.
But that is less important than missing picture, since game will not work without it. But i guess i will have to ask the site owner to look into that, since it is working fine if not uploaded.
If they are missing, an error will be displayed on the screen.
Try using DEBUG mode and check if they were actually loaded.

The good thing is that you don't need to do this through the browser because of the IFRAME, the service itself has a tool for this (Attached)
If they are missing, an error will be displayed on the screen.
Try using DEBUG mode and check if they were actually loaded.

The good thing is that you don't need to do this through the browser because of the IFRAME, the service itself has a tool for this (Attached)
Oh, thanks, didn't know about that.
Weird thing is, while this image is on screen -
1778097873903.png


All assets are passed. But they do not update, which probably means that the error happens before level is loaded, so the new assets do not appear in the debug.

And via browser debug i see this. The error seems to be "400 Invalid URI: isHexDigit".
Quess need to report that to the platform owner?

1778098187412.png


And same thing about audio file, but this time it is "403 Forbidden"
It looks like the URL is not being properly encoded. It should be %25zoe-sing.png, but it's actually %zoe-sing.png. I think your best bet is to rename the file to remove the %
As I said here:
Well, it's kind of strange to see a % sign in filenames, it can be confusing when requesting the file URL from the hosting, since it's used in situations like spaces becoming %20, ! becoming %21, and so on.

And same thing about audio file, but this time it is "403 Forbidden"
This is very strange; if it were direct hosting, you could change the permissions, but in this case, you might need to batch convert the files back to FFMPEG.
It's a wild guess, but I think some of those files aren't OGG, despite the extension.
Right, and my point was that it looks like something should be percent-encoding the URL (replacing % with %25) but isn't, resulting in an invalid URL.
Sorry, I meant that I thought it was implied that he shouldn't use that symbol in the file names.
The strange thing is that even without fully understanding the platform, I was able to test most of the audio and image files without difficulty. This leads me to wonder if some of his files might contain Cyrillic characters that, during decoding or extraction from the ZIP file when uploading, were replaced by acceptable characters, as happens in browsers that don't accept that encoding:
1778131457133.png

The filename was caused by the default plugin file identifier.

The problem is that if i change it to other identifier, it will still try to load the % version of the file for some reason. I think it might be because the qsprite editor itself isn't made to work with different format, at least this is what help file says, and i see nothing about changing it -
1778132628718.png


But then again, why do plugin has the option to change identifier then? It says this is if default plugin settings are used, but what if non default?
Unfortunately, we've reached a point that involves other third-party plugins.

Just try the tip I gave to fix the sound effects and possibly the music.
Regarding the music, i have both m4a and ogg files, and neither of those are played. Also, the playse command does not specify which file is played, how does the game determines that?
Well, in this case I recommend creating a new project in RPG Maker, a very simple one, just with some map events to play sound effects, and upload it to a new game on the account.

If no sound or music plays, it means there's some kind of blockage, and this could also be due to a plugin, so test it with this new project.

Edit:
This is all assuming that you've already tried playing other people's games on this platform and didn't have the same problem.
This is all assuming that you've already tried playing other people's games on this platform and didn't have the same problem.
I am not sure how it will help? They have different audio files than me.

And in my game, out of 3800 audio files only several do not play. It seems to be a very rare bug.
I am not sure how it will help? They have different audio files than me.
My mistake, I understood that few files were being played, not the opposite.
Given this, the only way to determine the cause is through DEBUG.

Install this plugin, then use the debugger to enable the switch you defined to force the M4A format, or disable it to force OGG (fixed):
JavaScript:
AudioManager.audioFileExt = function() {
    return ($gameSwitches._data[1])? '.m4a' : '.ogg';
};
This is just for testing purposes.

If it doesn't work, as I said before, you'll need to reconvert these files using FFMPEG preferably. Search Google for the command lines with the correct codecs for these formats.

This is very strange; if it were direct hosting, you could change the permissions, but in this case, you might need to batch convert the files back to FFMPEG.

Original thread: https://forums.rpgmakerweb.com/threads/makevideoplayableinline-is-not-defined-listed-advices-did-not-help.183467/