m |
m |
||
Line 1: | Line 1: | ||
+ | =Members= | ||
+ | |||
{{ScriptFunction|void|OnStateChange|()|Binds a function to the OnStateChange event which fires every time player changes its state|5=<pre> | {{ScriptFunction|void|OnStateChange|()|Binds a function to the OnStateChange event which fires every time player changes its state|5=<pre> | ||
Line 37: | Line 39: | ||
− | + | =Properties= | |
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()
xxxxxxxxxx
|