---
name: "ALLEGRO_VIDEO_EVENT_TYPE"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_VIDEO_EVENT_TYPE"
---

# ALLEGRO\_VIDEO\_EVENT\_TYPE(3)

Allegro 5 API

## NAME

ALLEGRO\_VIDEO\_EVENT\_TYPE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_video.h>
  enum ALLEGRO_VIDEO_EVENT_TYPE
  ```

## DESCRIPTION

Events sent by [al\_get\_video\_event\_source(3)](/al_get_video_event_source/3.md).

### 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.md)). [al\_get\_video\_frame(3)](/al_get_video_frame/3.md) 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
