m |
m |
||
Line 8: | Line 8: | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|Play()|If URL is set, plays the video|5=<pre> | + | {{ScriptFunction|void|Play|()|If URL is set, plays the video|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.Play() | Space.Host.ExecutingObject.EmbeddedVideo.Play() | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|Stop()|Stops the playback|5=<pre> | + | {{ScriptFunction|void|Stop|()|Stops the playback|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.Stop() | Space.Host.ExecutingObject.EmbeddedVideo.Stop() | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|Pause()|Pauses currently played video|5=<pre> | + | {{ScriptFunction|void|Pause|()|Pauses currently played video|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.Pause() | Space.Host.ExecutingObject.EmbeddedVideo.Pause() | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|Resume()|If the video is currently paused, it will resume playback|5=<pre> | + | {{ScriptFunction|void|Resume|()|If the video is currently paused, it will resume playback|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.Resume() | Space.Host.ExecutingObject.EmbeddedVideo.Resume() | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|SynchorizeUrl ()|Synchorize current video url|5=<pre> | + | {{ScriptFunction|void|SynchorizeUrl|()|Synchorize current video url|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl() | Space.Host.ExecutingObject.EmbeddedVideo.SynchorizeUrl() | ||
</pre>}} | </pre>}} | ||
− | {{ScriptFunction|void|ClearRenderTexture()|Clears the Render Texture|5=<pre> | + | {{ScriptFunction|void|ClearRenderTexture|()|Clears the Render Texture|5=<pre> |
Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture() | Space.Host.ExecutingObject.EmbeddedVideo.ClearRenderTexture() | ||
</pre>}} | </pre>}} |
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
|