Link Search Menu Expand Document

Video.d overview

The static class that handles video playback.


Table of contents


utils

Video (class)

The static class that handles video playback.

Signature

export declare class Video {
  constructor()
}

initialize (static method)

Initializes the video system.

Signature

static initialize(width: number, height: number): void

resize (static method)

Changes the display size of the video.

Signature

static resize(width: number, height: number): void

play (static method)

Starts playback of a video.

Signature

static play(src: string): void

isPlaying (static method)

Checks whether the video is playing.

Signature

static isPlaying(): boolean

setVolume (static method)

Sets the volume for videos.

Signature

static setVolume(volume: number): void

_createElement (static method)

Signature

static _createElement(): void

_onLoad (static method)

Signature

static _onLoad(): void

_onError (static method)

Signature

static _onError(): void

_onEnd (static method)

Signature

static _onEnd(): void

_updateVisibility (static method)

Signature

static _updateVisibility(videoVisible: boolean): void

_isVisible (static method)

Signature

static _isVisible(): boolean

_setupEventHandlers (static method)

Signature

static _setupEventHandlers(): void

_onUserGesture (static method)

Signature

static _onUserGesture(): void