Skip to main content

Video

Video component for embedding videos in scenes.

Properties

src

src: SimpleSignal<string, this>;

Video file URL.

width

width: SimpleSignal<number, this>;

Width.

height

height: SimpleSignal<number, this>;

Height.

playbackRate

playbackRate: SimpleSignal<number, this>;

Playback rate.

loop

loop: SimpleSignal<boolean, this>;

Whether to loop the video.

Methods

play

play(): void

Starts playing the video.

pause

pause(): void

Pauses the video.

getCurrentTime

getCurrentTime(): number

Gets the current playback time (seconds).

getDuration

getDuration(): number

Gets the total video duration (seconds).

isPlaying

isPlaying(): boolean

Checks if the video is currently playing.