SEmbeddedVideo
Index
Functions Index
void OnStateChange (Closure e)
void Play ()
void Stop ()
void Pause ()
void Resume ()
void SynchorizeUrl ()
void ClearRenderTexture ()
Properties Index
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
Functions
OnStateChange
void OnStateChange (Closure e)
Function Description
function stateChangeFunction(EmbeddedVideo, oldState, newState)
--what happens on state change
end
Space.Host.ExecutingObject.EmbeddedVideo.OnStageChange(stateChangeFunction)--get embedded video component on your video player
video = Space.Scene.Find("VidepPlayer").EmbeddedVideo
function GetClosure()
return function (a,b,c)
log(a.URL..b..c)
end
end
video.OnStateChange(GetClosure())
video.Pause()Play
void Play ()
If URL is set, plays the video
Space.Host.ExecutingObject.EmbeddedVideo.Play()Stop
void Stop ()
Stops the playback
Space.Host.ExecutingObject.EmbeddedVideo.Stop()Pause
void Pause ()
Pauses currently played video
Space.Host.ExecutingObject.EmbeddedVideo.Pause()Resume
void Resume ()
If the video is currently paused, it will resume playback
Space.Host.ExecutingObject.EmbeddedVideo.Resume()SynchorizeUrl
void SynchorizeUrl ()
Synchorize current video URL
Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl()ClearRenderTexture
void ClearRenderTexture ()
Clears the Render Texture
Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture()Properties
State
SEmbeddedVideoState State get
The state player is currently in. You can track state changes through StateChangeEvent.
CurrentVideoState = Space.Host.ExecutingObject.EmbeddedVideo.StateURL
string URL get set
Current URL set for this Player.
CurrentURL = Space.Host.ExecutingObject.EmbeddedVideo.URLAudioSource
SAudioSource AudioSource get set
Current AudioSource
CurrentAudioSource = Space.Host.ExecutingObject.EmbeddedVideo.AudioSourceOutputTexture
SResource OutputTexture get
Property Description
OutputTexture = Space.Host.ExecutingObject.EmbeddedVideo.OutputTextureTexture
SResource Texture get
Texture which the player uses to display the video.
Texture = Space.Host.ExecutingObject.EmbeddedVideo.TextureTime
double Time get set
Current player time. Can be set to move the 'playhead' to the specific position.
Time = Space.Host.ExecutingObject.EmbeddedVideo.TimePosition
long Position get
Current Video Frame Position
Position = Space.Host.ExecutingObject.EmbeddedVideo.PositionUniqueName
string UniqueName get
Property Description
UniqueName = Space.Host.ExecutingObject.EmbeddedVideo.UniqueNameVideoLength
double VideoLength get
Get the length of the video
VideoLength = Space.Host.ExecutingObject.EmbeddedVideo.VideoLengthLoop
bool Loop get set
Whether video is set to loop or not
Space.Host.ExecutingObject.EmbeddedVideo.Loop = trueFrameCount
int FrameCount get
Returns the frame count of the video
FrameCount = Space.Host.ExecutingObject.EmbeddedVideo.FrameCountIsPlaying
bool IsPlaying get
Returns whether the video is playing or not
IsPlaying = Space.Host.ExecutingObject.EmbeddedVideo.IsPlayingGameObject
SGameObject GameObject get
Property Description
theGameObject = Space.Host.ExecutingObject.EmbeddedVideo.GameObject