Namespace: Video

Video

The static class that handles video playback.

Methods

Video.initialize(width, height)static

Initializes the video system
NameTypeDescription
widthnumberThe width of the video
heightnumberThe height of the video

Video.isPlaying()booleanstatic

Checks whether the video is playing
Returns:
TypeDescription
booleanTrue if the video is playing

Video.play(src)static

Starts playback of a video
NameTypeDescription
srcstringThe url of the video

Video.resize(width, height)static

Changes the display size of the video
NameTypeDescription
widthnumberThe width of the video
heightnumberThe height of the video

Video.setVolume(volume)static

Sets the volume for videos
NameTypeDescription
volumenumberThe volume for videos (0 to 1)