video_close

This function closes the video file that is currently loaded. Ensure that this is only called after a video_open() call, otherwise it will not do anything.

 

Syntax:

video_close();

 

Returns:

N/A

 

Example:

if (keyboard_check_pressed(vk_escape))
{
    video_close();
}

The above code closes the video when the Escape key is pressed.