VLC 4.0.0-dev
vlc_player_media_provider Struct Reference

Callbacks for the owner of the player. More...

#include <vlc_player.h>

Collaboration diagram for vlc_player_media_provider:
[legend]

Data Fields

input_item_t *(* get_next )(vlc_player_t *player, void *data)
 Called when the player requires a new media. More...
 

Detailed Description

Callbacks for the owner of the player.

These callbacks are needed to control the player flow (via the vlc_playlist_t as a owner for example). It can only be set when creating the player via vlc_player_New().

All callbacks are called with the player locked (cf. vlc_player_Lock()), and from any thread (even the current one).

Field Documentation

◆ get_next

input_item_t *(* vlc_player_media_provider::get_next) (vlc_player_t *player, void *data)

Called when the player requires a new media.

Note
The returned media must be already held with input_item_Hold()
Parameters
playerlocked player instance
dataopaque pointer set from vlc_player_New()
Returns
the next media to play, held by the callee with input_item_Hold()

Referenced by vlc_player_New(), and vlc_player_PrepareNextMedia().


The documentation for this struct was generated from the following file: