VIDEO PLAYER FOR RPG MAKER MV

RPG Maker MV

Have more control for movies


Description
By default, RPG Maker MV only allows you one thing. Play a video. This is a plugin to have more control over videos such as looping, play multiple videos at once and play videos as the rest of the command events are initiating. This is great if you have video cutscenes and want messages to play.

How to use?
Use script call event command and you will be able to do any of the following:
* ysp.VideoPlayer.loadVideo(videoName) - Preload Video
* ysp.VideoPlayer.releaseVideo(videoName) - Release memory for a Video
* ysp.VideoPlayer.newVideo(videoName, id) - Create new Video object with id
* ysp.VideoPlayer.playVideoById(id) - Play a Video object by id
* ysp.VideoPlayer.stopVideoById(id) - Stop a Video object by id
* ysp.VideoPlayer.setLoopById(id) - Make a Video object playing loop by id
* ysp.VideoPlayer.getVideoById(id) - Get Video object by id
* ysp.VideoPlayer.isReady() - Check if all videos have been loaded
Here is an example case if I want the video to fade in and fade out:
◆Comment:This will preload the video

: :----------------------------------------------
◆Script:ysp.VideoPlayer.loadVideo('mirror.webm')
◆Comment:This will check if the video is already in memory.
: :----------------------------------------------
◆Loop
◆If:Script:ysp.VideoPlayer.isReady()
◆Comment:This will stop the loop.
: :----------------------------------------------
◆Break Loop

:End

:Repeat Above
◆Fadeout Screen
◆Comment:This will set the following
: :Video ID #1 : mirror.webm'
: :Play video ID #1
: :Loop video ID #1
: :----------------------------------------------
◆Script:ysp.VideoPlayer.newVideo('mirror.webm', 1)
: :ysp.VideoPlayer.playVideoById(1)
: :ysp.VideoPlayer.setLoopById(1)
◆Fadein Screen
◆Text:None, Window, Bottom
: :Wow! We have looping videos!
: :And the text is showing!
: :\}So\{ freaking \{cool!
◆Fadeout Screen
◆Comment:Stop the video
: :----------------------------------------------
◆Script:ysp.VideoPlayer.stopVideoById(1)
◆Fadein Screen

Posts

Pages: 1
This could do with a method to test when the video has finished, when you're not looping.

This works in an event's conditional branch script (but feels like a hack):
!!ysp.VideoPlayer.getVideoById(1).texture.baseTexture.source.ended
Pages: 1