PlayVideo

Category: Audio

Back to System Functions


Signature

PlayVideo(videoPath As String, [skippable As Boolean])

Returns

Void

Description

Plays a video file in the current Graphics window. Call Graphics first so the runtime has an active presentation surface.

The optional skippable argument defaults to False. When it is True, pressing any key, mouse button, or joystick button skips the video.

Pro feature: compiling code that uses PlayVideo requires a license with the VideoPlayback feature enabled.

Example

Graphics(1280, 720)
PlayVideo("movies/intro.mp4", True)