This function pauses the video file that is currently loaded. You can resume it by calling video_resume() any time after this function.
video_pause();
N/A
var _status = video_get_status();
if (keyboard_check_pressed(vk_space))
{
if (_status == video_status_playing)
{
video_pause();
}
else if (status == video_status_paused)
{
video_resume();
}
}
The above code gets the status of the video and then checks if the player has pressed Space. In that case it pauses the video if it's playing, and resumes it if it's paused.