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...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sembeddedvideo")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ScriptFunction|void|OnStateChange()|Binds a function to the OnStateChange event which fires every time player changes its state|5=<pre>
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sembeddedvideo
 
+
function sc()
+
Space.Log("State Changed")
+
end
+
 
+
Space.Host.ExecutingObject.EmbeddedVideo.OnStateChange(sc)
+
</pre>}}
+
 
+
{{ScriptFunction|void|Play()|If URL is set, plays the video|5=<pre>
+
 
+
Space.Host.ExecutingObject.EmbeddedVideo.Play()
+
</pre>}}
+
 
+
{{ScriptFunction|void|Stop()|Stops the playback|5=<pre>
+
Space.Host.ExecutingObject.EmbeddedVideo.Stop()
+
</pre>}}
+
 
+
{{ScriptFunction|void|Pause()|Pauses currently played video|5=<pre>
+
Space.Host.ExecutingObject.EmbeddedVideo.Pause()
+
</pre>}}
+
 
+
{{ScriptFunction|void|Resume()|If the video is currently paused, it will resume playback|5=<pre>
+
Space.Host.ExecutingObject.EmbeddedVideo.Resume()
+
</pre>}}
+
 
+
{{ScriptFunction|void|SynchorizeUrl ()|Synchorize current video url|5=<pre>
+
Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl()
+
</pre>}}
+
 
+
{{ScriptFunction|void|ClearRenderTexture()|Clears the Render Texture|5=<pre>
+
Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture()
+
</pre>}}
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
{{ScriptFunction|void|Property|{ get;set; }|xxxxxxxxxx|5= <pre></pre>}}
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 05:41, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sembeddedvideo