Video.d overview
The static class that handles video playback.
Table of contents
- utils
- Video (class)
- initialize (static method)
- resize (static method)
- play (static method)
- isPlaying (static method)
- setVolume (static method)
- _createElement (static method)
- _onLoad (static method)
- _onError (static method)
- _onEnd (static method)
- _updateVisibility (static method)
- _isVisible (static method)
- _setupEventHandlers (static method)
- _onUserGesture (static method)
- Video (class)
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