Namespace: Video

Video

The static class that handles video playback.

Methods

Video.initialize (width, height) static

Initializes the video system.

Name Type Description
width number

The width of the video.

height number

The height of the video.

Video.isPlaying ()boolean static

Checks whether the video is playing.

Returns:
Type Description
boolean True if the video is playing.

Video.play (src) static

Starts playback of a video.

Name Type Description
src string

The url of the video.

Video.resize (width, height) static

Changes the display size of the video.

Name Type Description
width number

The width of the video.

height number

The height of the video.

Video.setVolume (volume) static

Sets the volume for videos.

Name Type Description
volume number

The volume for videos (0 to 1).