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

Hello. I am trying to upload an old game to a website (as a HTML), but got the "makeVideoPlayableInline is not defined" when i start it. I have read each post linked in one of the comments here

So what i did - updated the index file from a newly created project. Replaced all the js files except plugins.

No problems with game itself, i took a stable playable build, but i haven't exported it to HTML before, so something must be wrong in this aspect. But what? I even tried to not encrypt or exclude unused files, still getting the same error.
can you give a screenshot of the error message, preferably with an output of the console trace?

there are two different but similar sounding error messages, and your text alone does not allow to determine what exactly is undefined - the function itself or the data object that functions belong to.
This function is part of a library called iphone-inline-video.js
Provided by: npm.im/iphone-inline-video

Have you tried running the HTML through an online service or directly in the browser? (given the appropriate read and write permissions)
That file should be in the js/libs folder – you can find it in RPGMaker MV's NewData folder and copy it over. (You could probably just copy the entire libs folder.)
can you give a screenshot of the error message, preferably with an output of the console trace?

there are two different but similar sounding error messages, and your text alone does not allow to determine what exactly is undefined - the function itself or the data object that functions belong to.
1777744609572.png

This function is part of a library called iphone-inline-video.js
Provided by: npm.im/iphone-inline-video

Have you tried running the HTML through an online service or directly in the browser? (given the appropriate read and write permissions)
Online. In browser it does not run for some reason, it gives me various errors for missing files, but all the files are present. That happens if i directly run the index.html, but that always happened with htm version so i don't bother testing it in browser. When uploaded they usually work.
That file should be in the js/libs folder – you can find it in RPGMaker MV's NewData folder and copy it over. (You could probably just copy the entire libs folder.)
Did that.
If you run index.html directly, you need to test it in different browsers to make sure the problem is actually in the project and not due to some modification in your main browser's settings.

See this:
If you run index.html directly, you need to test it in different browsers to make sure the problem is actually in the project and not due to some modification in your main browser's settings.

See this:
Thank you, i can now launch it, it plays allright, no errors. Does it mean that the error is caused by the site i am uploading to?
I don't know, I would need more information. It could be your browser, as the game might be running within an IFRAME with cross-origin parameters that prevent access to file reading.
1777752684579.png
Cross-origin is definitely something that breaks RPGMaker games quite frequently. For example, if you upload it to Itch.io, it'll be shown in a frame, and usually fail to load because the frame is on a different domain than Itch.io. In that case you can right-click and choose "Show only this frame", and it'll work. I'd suggest trying that on your uploaded game, at least as a test to see if it's the problem.
I don't know, I would need more information. It could be your browser, as the game might be running within an IFRAME with cross-origin parameters that prevent access to file reading.
View attachment 365438
Sorry, i don't know the code at all, so don't know what that is. Is there a way to try disabeling it to see if it will solve the issue?
When i upload, i can chose something different then Iframe, but what should i chose?
1777754359326.png

Cross-origin is definitely something that breaks RPGMaker games quite frequently. For example, if you upload it to Itch.io, it'll be shown in a frame, and usually fail to load because the frame is on a different domain than Itch.io. In that case you can right-click and choose "Show only this frame", and it'll work. I'd suggest trying that on your uploaded game, at least as a test to see if it's the problem.
Can't test it on Itch since it gives me too many files in the archive error.
And the site where i upload it to (glitch.fun) does nothing on right click.
Sorry, i don't know the code at all, so don't know what that is
This is basic HTML, very basic indeed, unlike JAVASCRIPT, which is a programming language with many native functions.
I showed it to see where the script that wasn't loading was coming from; it's being requested in the simplest way possible, which means it's probably the service that's blocking it, try selecting the Node.JS option.

I just need confirmation that you've tested it in other browsers to be sure the problem is with the service.
And the site where i upload it to (glitch.fun) does nothing on right click.
For sites that override normal right-click behaviour, you can usually still get the right-click menu by holding Control or Alt while right-clicking.

It's hard to say, but looking at your upload options, I think iframe is most likely the correct one. That said, it certainly can't hurt to try node.js. The other two definitely aren't valid choices for an RPGMaker game.
This is basic HTML, very basic indeed, unlike JAVASCRIPT, which is a programming language with many native functions.
I showed it to see where the script that wasn't loading was coming from; it's being requested in the simplest way possible, which means it's probably the service that's blocking it, try selecting the Node.JS option.

I just need confirmation that you've tested it in other browsers to be sure the problem is with the service.
For some reason i can't run it on Chrome, the error is still there despite me entering command after a space in shortcut.
Tried nodejs, got "Node deployment requires a Dockerfile in the root of your ZIP." error after uploading

you can usually still get the right-click menu by holding Control or Alt while right-clicking.
Does not work as well
Does not work as well
It likely depends on the browser as well. I don't know what browser you're using, but that approach works in Firefox, at least.
It likely depends on the browser as well. I don't know what browser you're using, but that approach works in Firefox, at least.
Firefox...
Firefox users often use U-Block, which may be affecting the loading of some scripts that it interprets as displaying advertisements on the screen, since this particular library appears to be for video playback.
Firefox users often use U-Block, which may be affecting the loading of some scripts that it interprets as displaying advertisements on the screen, since this particular library appears to be for video playback.
Yes, you are correct. I am using that addon, hovewed disabeling it does nothing.
And the site where i upload it to (glitch.fun)
I tried using this platform and I think I couldn't understand where the problem arises, like how to upload the game.
I tried using this platform and I think I couldn't understand where the problem arises, like how to upload the game.
Yeah, the authors didn't make it easy to find, i had troubles as well... https://glitch.fun/games/admin - on this page there would be the deploy files button. But before that you need to press "register new game" button on the same page.
Something I had no trouble with, right-clicking, worked normally:
1777931286780.png


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:
1777930829595.png

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:
1777931465317.png


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.

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