ParelVRDocs
Player site

Scripting / Reference

Video

Types in the ParelVR.Volt.Video namespace.

VoltVideoError#

ParelVR.Volt.Video.VoltVideoError enum

Why a video failed.

Values: None, InvalidUrl, DomainNotAllowed, RateLimited, PlayerError, Unknown

VoltVideoPlayer#

ParelVR.Volt.Video.VoltVideoPlayer component extends VoltSceneComponent

A video screen in the world. It plays from an https address through ParelVR's own video pipeline, which applies the same address rules as web requests.

VoltVideoPlayer properties#

float Duration { get; }

Length of the video in seconds. Zero for a live stream.

VoltVideoError Error { get; }

Why the last load failed.

bool IsPlaying { get; }

True while the video is playing.

bool IsReady { get; }

True once the video is loaded.

bool Loop { get; set; }

Whether the video starts over when it ends.

float Time { get; }

Position in the video in seconds.

string Url { get; }

The address that is loaded.

float Volume { get; set; }

Loudness, 0 to 1.

VoltVideoPlayer methods#

void LoadUrl(VoltUrl url)

Loads a video. OnVideoReady or OnVideoError follows.

void Pause()

Pauses.

void Play()

Starts or continues playing.

void Seek(float seconds)

Jumps to a position in seconds.

void Stop()

Stops and unloads the video.