void OnStateChange (Closure e)
Function Description
void Play ()
If URL is set, plays the video
void Stop ()
Stops the playback
void Pause ()
Pauses currently played video
void Resume ()
If the video is currently paused, it will resume playback
void SynchorizeUrl ()
Synchorize current video URL
void ClearRenderTexture ()
Clears the Render Texture
SEmbeddedVideoState State get
The state player is currently in. You can track state changes through StateChangeEvent.
string URL get
set
Current URL set for this Player.
SAudioSource AudioSource get
set
Current AudioSource
SResource OutputTexture get
Property Description
SResource Texture get
Texture which the player uses to display the video.
double Time get
set
Current player time. Can be set to move the 'playhead' to the specific position.
long Position get
Current Video Frame Position
string UniqueName get
Property Description
double VideoLength get
Get the length of the video
bool Loop get
set
Whether video is set to loop or not
int FrameCount get
Returns the frame count of the video
bool IsPlaying get
Returns whether the video is playing or not
SGameObject GameObject get
Property Description
Function Name |
---|
Property Name |
---|
Parameter | Type | Description |
---|---|---|
void OnStateChange (Closure e)
void Play ()
void Stop ()
void Pause ()
void Resume ()
void SynchorizeUrl ()
void ClearRenderTexture ()
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
int FrameCount get
bool IsPlaying get
SGameObject GameObject get