SEmbeddedVideo

Index

Functions Index

Function Name

void OnStateChange (Closure e)

void Play ()

void Stop ()

void Pause ()

void Resume ()

Properties Index

Property Name

SEmbeddedVideoState State get

string URL get set

SAudioSource AudioSource get set

SResource OutputTexture get

SResource Texture get

double Time get set

long Position get

string UniqueName get

double VideoLength get

bool Loop get set

bool IsPlaying get

SGameObject GameObject get

Functions

OnStateChange

void OnStateChange (Closure e)

Function Description

Parameter
Type
Description

Play

void Play ()

If URL is set, plays the video

Stop

void Stop ()

Stops the playback

Pause

void Pause ()

Pauses currently played video

Resume

void Resume ()

If the video is currently paused, it will resume playback

SynchorizeUrl

void SynchorizeUrl ()

Synchorize current video URL

ClearRenderTexture

void ClearRenderTexture ()

Clears the Render Texture

Properties

State

SEmbeddedVideoState State get

The state player is currently in. You can track state changes through StateChangeEvent.

URL

string URL get set

Current URL set for this Player.

AudioSource

SAudioSource AudioSource get set

Current AudioSource

OutputTexture

SResource OutputTexture get

Property Description

Texture

SResource Texture get

Texture which the player uses to display the video.

Time

double Time get set

Current player time. Can be set to move the 'playhead' to the specific position.

Position

long Position get

Current Video Frame Position

UniqueName

string UniqueName get

Property Description

VideoLength

double VideoLength get

Get the length of the video

Loop

bool Loop get set

Whether video is set to loop or not

FrameCount

int FrameCount get

Returns the frame count of the video

IsPlaying

bool IsPlaying get

Returns whether the video is playing or not

GameObject

SGameObject GameObject get

Property Description

Last updated

Was this helpful?