ALLEGRO_VIDEO_EVENT_TYPE - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_video.h>

enum ALLEGRO_VIDEO_EVENT_TYPE

Description

Events sent by al_get_video_event_source(3).

Allegro_event_video_frame_show

This event is sent when it is time to show a new frame. Once you receive this event, you can draw the current frame (as returned by al_get_video_frame(3)). al_get_video_frame(3) will continue returning the same frame until the next ALLEGRO_EVENT_VIDEO_FRAME_SHOW is sent.

user.data1 (ALLEGRO_VIDEO *)

The video which generated the event.

Since

5.1.0

Allegro_event_video_finished

This event is sent when the video is finished. Depending on the backend, it may be possible to seek to an earlier part of the video and set the video to play to resume playback.

user.data1 (ALLEGRO_VIDEO *)

The video which generated the event.

Since

5.1.0

Referenced By

al_get_video_event_source(3).

Allegro reference manual