Pausing and Skipping Movie Cutscenes

EDIT: 01/06/2025
I found a solution thanks to this thread, but If I let the video play out it will loop indefinitely.

I would appreciate some help D:


There are times where the player gets interrupted during a meaningful movie cutscene and wishes to pause and resume later, and times where the player wishes to skip the cutscenes they have already seen when replaying the game.

Is there a way to enable this? Or an existing plugin that enables this kind of movie player functionality?
you will need a plugin, most specifically an advanced video player plugin that adds such functions to the video player.

Unfortunately I don't have any link for MZ.
you will need a plugin, most specifically an advanced video player plugin that adds such functions to the video player.

Unfortunately I don't have any link for MZ.
Thank you for your information 🙂
Use a script to play a video:

Video.play("movies/video.webm");

And then make a loop with a conditional branch, checking for button presses.
To pause the video:

Video._element.pause();

To stop / skip the video:

Video._element.currentTime = 99999; //any number higher than video length
Video._element.pause();
Video._updateVisibility(false);
Use a script to play a video:

Video.play("movies/video.webm");

And then make a loop with a conditional branch, checking for button presses.
To pause the video:

Video._element.pause();

To stop / skip the video:

Video._element.currentTime = 99999; //any number higher than video length
Video._element.pause();
Video._updateVisibility(false);
Woahh! Thank you so much!! :00
I'll try it in a moment 🙂
Use a script to play a video:

Video.play("movies/video.webm");

And then make a loop with a conditional branch, checking for button presses.
To pause the video:

Video._element.pause();

To stop / skip the video:

Video._element.currentTime = 99999; //any number higher than video length
Video._element.pause();
Video._updateVisibility(false);
So, I can't resume the movie after pausing. I would like to press the same button used for pausing to resume.

I create a switch that tells when the video is paused. When that switch is ON and I press the button, what script should I use to resume the video?

I won't let me skip the movie too. It's 3 minutes long.
(I use Cancel button here for testing)
1720798863839.png
Everything works, but I can't resume the movie after pausing. I would like to press the same button used for pausing to resume.

I create a switch that tells when the video is paused. When that switch is ON and I press the button, what script should I use to resume the video?

It should just be Video.play();
Doesn't seem to work 🙁 I also made an edit to the post since skipping also doesn't seem to work (I assumed it would work too). You can check the screenshot :0

Sorry for the trouble!
Doesn't seem to work 🙁 I also made an edit to the post since skipping also doesn't seem to work (I assumed it worked fine). You can check the screenshot :0
1720799124326.png

For pausing

The problem is that you've nested the [Down] inside [OK] which means that now they both have to be pressed. Also, you should include a 1 frame Wait inside the loop for performance reasons.


Here's my code I just made and tested to be working:
The self switches are to switch between pausing and resuming (so it works like a toggle)
1720799403776.png
The problem is that you've nested the [Down] inside [OK] which means that now they both have to be pressed. Also, you should include a 1 frame Wait inside the loop for performance reasons.


Here's my code I just made and tested to be working:
The self switches are to switch between pausing and resuming (so it works like a toggle)
I hadn't noticed, sorry! 👋

The player works perfectly! 😤 Pressing cancel would also open the menu when skipping. I fixed this by adding Change Menu Access: Disable as you can see in the screenshot. I will then Enable Menu Access at the end of a short cutscene after the movie. Thank you very much!
1720800473210.png
Hey! So I found this thread and was able to make this system work in my game too!
The problem I'm having is that the game will only advance as normal if I skip the cutscene, whereas if I let the scene play out, then it loops forever. How does one break the loop without skipping the cutscene?
Hey! So I found this thread and was able to make this system work in my game too!
The problem I'm having is that the game will only advance as normal if I skip the cutscene, whereas if I let the scene play out, then it loops forever. How does one break the loop without skipping the cutscene?
Oh damn, I haven't tested that! I figured it would work. Thanks for pointing that out!

Unfortunately I don't know a fix as of now, I also would like to find the solution
(╥﹏╥)

If anyone could help it would be greatly appreciated ^-^
Bump! Any help is appreciated ^-^
just add a condition or script to check if the video length >= x length.
set this number of duration and switch it OFF or ON, whatever works.

I don't have MZ, but do similar like 99999 target, but actual duration.
just add a condition or script to check if the video length >= x length.
set this number of duration and switch it OFF or ON, whatever works.

I don't have MZ, but do similar like 99999 target, but actual duration.
Where exactly would that fit into this flowchart, and what would the exact script text be?
1720800473210.png
something like below the cancel:

Code:
if: script: Video._element.currentTime >= lengthOfVideo
     script: Video.)elemt.pause()
              : Video._element._updateViibility(false)

maybe switch trigger to a new page if fully watch, but can't test that.
so someone might correct me if something is wrong.

if might be possible to set a .length to it, but unsure where and how.

Original thread: https://forums.rpgmakerweb.com/threads/pausing-and-skipping-movie-cutscenes.170227/