Skip to content
anthony.samms edited this page May 28, 2026 · 1 revision

This document will outline the video player library. The video library uses ffmpeg to convert video frames into raylib textures.

VideoPlayer(fs::path path);

Create a video player object. Any format supported by ffmpeg will work.

void start(double current_ms);

Start video playback at the given time.

bool is_finished() const;
bool is_started()  const;

A video is finished when both the audio and video playback have completed.

void set_volume(float volume);

Control the volume of the video. Most useful for muting.

void update(double current_ms);

Advance video playback.

void draw();

Draw the current frame of the video. This will always fill to the width and height of the screen.

void stop();

Stop playing the video.

Clone this wiki locally