Binds a function to the OnStateChange event which fires every time player changes its state
function sc() Space.Log("State Changed") end Space.Host.ExecutingObject.EmbeddedVideo.OnStateChange(sc)
If URL is set, plays the video
Space.Host.ExecutingObject.EmbeddedVideo.Play()
Stops the playback
Space.Host.ExecutingObject.EmbeddedVideo.Stop()
Pauses currently played video
Space.Host.ExecutingObject.EmbeddedVideo.Pause()
If the video is currently paused, it will resume playback
Space.Host.ExecutingObject.EmbeddedVideo.Resume()
Synchorize current video url
Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl()
Clears the Render Texture
Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture()
The state player is currently in. You can track state changes through StateChangeEvent.
CurrentVideoState = Space.Host.ExecutingObject.EmbeddedVideo.State
Current URL set for this Player.
CurrentURL = Space.Host.ExecutingObject.EmbeddedVideo.URL
Current AudioSource
CurrentAudioSource = Space.Host.ExecutingObject.EmbeddedVideo.AudioSource
OutputTexture = Space.Host.ExecutingObject.EmbeddedVideo.OutputTexture
Texture which the player uses to display the video.
Texture = Space.Host.ExecutingObject.EmbeddedVideo.Texture
Current player time. Can be set to move the 'playhead' to the specific position.
Time = Space.Host.ExecutingObject.EmbeddedVideo.Time
Current Video Frame Position
Position = Space.Host.ExecutingObject.EmbeddedVideo.Position
UniqueName = Space.Host.ExecutingObject.EmbeddedVideo.UniqueName
Get the length of the video
VideoLength = Space.Host.ExecutingObject.EmbeddedVideo.VideoLength
Whether video is set to loop or not
Loop = Space.Host.ExecutingObject.EmbeddedVideo.Loop = true
Returns the frame count of the video
FrameCount = Space.Host.ExecutingObject.EmbeddedVideo.FrameCount
Returns whether the video is playing or not
IsPlaying = Space.Host.ExecutingObject.EmbeddedVideo.IsPlaying
|