wiki.sine.space | sinespace

Difference between revisions of "Scripting/SEmbeddedVideo"

From wiki.sine.space
Jump to: navigation, search
(Created page with "{{ScriptFunction|void|OnStateChange()|Binds a function to the OnStateChange event which fires every time player changes its state|5=<pre> function sc() Space.Log("State Chang...")
 
m
Line 1: Line 1:
{{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>
  
 
function sc()
 
function sc()

Revision as of 05:06, 12 May 2021

OnStateChange

void OnStateChange ()

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)


Play()

void Play() If URL is set, plays the video

No documentation


Space.Host.ExecutingObject.EmbeddedVideo.Play()


Stop()

void Stop() Stops the playback

No documentation

Space.Host.ExecutingObject.EmbeddedVideo.Stop()


Pause()

void Pause() Pauses currently played video

No documentation

Space.Host.ExecutingObject.EmbeddedVideo.Pause()


Resume()

void Resume() If the video is currently paused, it will resume playback

No documentation

Space.Host.ExecutingObject.EmbeddedVideo.Resume()


SynchorizeUrl ()

void SynchorizeUrl () Synchorize current video url

No documentation

Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl()


ClearRenderTexture()

void ClearRenderTexture() Clears the Render Texture

No documentation

Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture()






Property

void Property { get;set; }

xxxxxxxxxx