Video.SetFullScreen

Video.SetFullScreen ( 

string  ObjectName,

boolean Fullscreen = true )

Example 1

Video.SetFullScreen("Video3", true);

Sets the "Video3" video object to play in full screen mode.

Example 2

Video.SetFullScreen("Intro Video", false);

Sets the video object named "Intro Video" to just play normally.

Example 3

Video.SetFullScreen("Video12");

Sets the video object named "Video12" to play in full screen mode.

Example 4

Video.SetFullScreen( "Running Dude", not Video.IsFullScreen("Running Dude") );

Toggles the video object named "Running Dude" between full screen mode and normal mode. In other words, if "Running Dude" is currently in full screen mode, make it normal; and if it's currently in normal mode, make it full screen.

Note: The not operator is used in this example to convert the result of the Video.IsFullScreen action to its logical opposite. If Video.IsFullScreen returns true, the not converts that true into a false; if Video.IsFullScreen returns false, the not converts that false into a true. The result is then used as the second parameter in our Video.SetFullScreen action. So, the Video.SetFullScreen action sets the full screen mode of "Running Dude" to true or false, based on whether "Running Dude" is currently in full screen mode or not, essentially toggling its full screen mode between on or off.

See also:  Related Actions