Class in reactor_core_io.js

Video

5 public functions in 4 groups · show internal (_) functions

The Database: everything Core loads at boot.

Familiar territory. Video keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

The static class that handles video playback.

@namespace
function Video()

Quick Reference

Setup & Creation 1

initialize() Initializes the video system.

Checks (True / False) 1

isPlaying() Checks whether the video is playing.

Actions 2

play() Starts playback of a video.
setVolume() Sets the volume for videos.

Other 1

resize() Changes the display size of the video.

Setup & Creation

initialize

static source
Video.initialize(width, height)

Initializes the video system.

Details

Initializes the video system.

@param
width number The width of the video.
@param
height number The height of the video.

Checks (True / False)

isPlaying

static source
Video.isPlaying()

Checks whether the video is playing.

Details

Checks whether the video is playing.

@returns
boolean True if the video is playing.

Actions

play

static source
Video.play(src)

Starts playback of a video.

Details

Starts playback of a video.

@param
src string The url of the video.

setVolume

static source
Video.setVolume(volume)

Sets the volume for videos.

Details

Sets the volume for videos.

@param
volume number The volume for videos (0 to 1).

Other

resize

static source
Video.resize(width, height)

Changes the display size of the video.

Details

Changes the display size of the video.

@param
width number The width of the video.
@param
height number The height of the video.