MV Difference between MV and MZ's video player code?

1729433177641.png

As we can see there's an error message when playing a movie for the first time on MV(the video plays, so nothing is broken), when MZ doesn't have this problem.
But this part of the code is almost identical, so I'm curiously why there's a diference.

This is from MV:
JavaScript:
Graphics._playVideo = function(src) {
    this._video.src = src;
    this._video.onloadeddata = this._onVideoLoad.bind(this);
    this._video.onerror = this._videoLoader;
    this._video.onended = this._onVideoEnd.bind(this);
    this._video.load(); //line 2135 of rpg_core.js is here
    this._videoLoading = true;
};

And this is from MZ:
JavaScript:
Video.play = function(src) {
    this._element.src = src;
    this._element.onloadeddata = this._onLoad.bind(this);
    this._element.onerror = this._onError.bind(this);
    this._element.onended = this._onEnd.bind(this);
    this._element.load(); // this line, however, doesn't cause an error message
    this._loading = true;
};

Before you ask, no, it has nothing to do with nw.js version, I tried opening the MV project in MZ and got the same error message.
What's more strange, the bug can be fixed by removing line 2135 (this._video.load()), with no visible drawbacks (at least on PC).

Despite what the error message shows, it has nothing to do with play(), as you can see the line of code calls load(), so it does't make sense (google results all point to video.play, so they don't help much).
I didn't mess with video's yet or do have MZ, but it sounds weird that
this.video.load() throws an error and still play when ruling it out or remove it.

but I think it is more required when you use the web version when that line
is required to load (while guess).

but I'm kind of interesting of the solution, in case I use video's.
I didn't mess with video's yet or do have MZ, but it sounds weird that
this.video.load() throws an error and still play when ruling it out or remove it.

but I think it is more required when you use the web version when that line
is required to load (while guess).

but I'm kind of interesting of the solution, in case I use video's.
It works because play is called in onloadeddata. It seems load is automatically called somewhere else I just need to find out.
Not sure if the ResourceHandler function has anything to do with it or not in MV. As you've said, the video plays with no issues.
so far on spitting around on the .load() seems more related to browser,
as it seems to be an inbuild function.

mostly the video.load() is there if you play from mobiles and browsers,
but than I wonder, why is there no check if its a browser or mobileDevice
to use that function instead?

it's probably also the reason that is not found in the core files like ".ready()" or ".isReady()"
that html uses as default.
Not sure if the ResourceHandler function has anything to do with it or not in MV. As you've said, the video plays with no issues.
If this line of code does anything I don't know, but it had no side effect when I commented it.
JavaScript:
Graphics.playVideo = function(src) {
    //this._videoLoader = ResourceHandler.createLoader(null, this._playVideo.bind(this, src), this._onVideoError.bind(this));
    this._playVideo(src);
};

Graphics._playVideo = function(src) {
    this._video.src = src;
    this._video.onloadeddata = this._onVideoLoad.bind(this);
    this._video.onerror = this._videoLoader;
    this._video.onended = this._onVideoEnd.bind(this);
    //this._video.load();
    this._videoLoading = true;
};

Still it is a mystery why MZ doesn't have this error message, when it also uses .load function.

Original thread: https://forums.rpgmakerweb.com/threads/difference-between-mv-and-mzs-video-player-code.172711/