VLC  4.0.0-dev
player.c File Reference
Include dependency graph for player.c:

Functions

static void player_on_current_media_changed (vlc_player_t *player, input_item_t *new_media, void *userdata)
 
static void on_player_media_meta_changed (vlc_player_t *player, input_item_t *media, void *userdata)
 
static void on_player_media_length_changed (vlc_player_t *player, vlc_tick_t new_length, void *userdata)
 
static void on_player_media_subitems_changed (vlc_player_t *player, input_item_t *media, input_item_node_t *subitems, void *userdata)
 
static input_item_tplayer_get_next_media (vlc_player_t *player, void *userdata)
 
bool vlc_playlist_PlayerInit (vlc_playlist_t *playlist, vlc_object_t *parent)
 
void vlc_playlist_PlayerDestroy (vlc_playlist_t *playlist)
 
vlc_player_tvlc_playlist_GetPlayer (vlc_playlist_t *playlist)
 Return the player owned by the playlist. More...
 
int vlc_playlist_Start (vlc_playlist_t *playlist)
 Start the player. More...
 
void vlc_playlist_Stop (vlc_playlist_t *playlist)
 Stop the player. More...
 
void vlc_playlist_Pause (vlc_playlist_t *playlist)
 Pause the player. More...
 
void vlc_playlist_Resume (vlc_playlist_t *playlist)
 Resume the player. More...
 

Variables

static const struct vlc_player_media_provider player_media_provider
 
static const struct vlc_player_cbs player_callbacks
 

Function Documentation

◆ on_player_media_length_changed()

static void on_player_media_length_changed ( vlc_player_t player,
vlc_tick_t  new_length,
void *  userdata 
)
static

◆ on_player_media_meta_changed()

static void on_player_media_meta_changed ( vlc_player_t player,
input_item_t media,
void *  userdata 
)
static

◆ on_player_media_subitems_changed()

static void on_player_media_subitems_changed ( vlc_player_t player,
input_item_t media,
input_item_node_t subitems,
void *  userdata 
)
static

◆ player_get_next_media()

static input_item_t* player_get_next_media ( vlc_player_t player,
void *  userdata 
)
static

◆ player_on_current_media_changed()

◆ vlc_playlist_PlayerDestroy()

◆ vlc_playlist_PlayerInit()

Variable Documentation

◆ player_callbacks

const struct vlc_player_cbs player_callbacks
static
Initial value:
= {
.on_current_media_changed = player_on_current_media_changed,
.on_media_meta_changed = on_player_media_meta_changed,
.on_length_changed = on_player_media_length_changed,
.on_media_subitems_changed = on_player_media_subitems_changed,
}
static void player_on_current_media_changed(vlc_player_t *player, input_item_t *new_media, void *userdata)
Definition: player.c:35
static void on_player_media_meta_changed(vlc_player_t *player, input_item_t *media, void *userdata)
Definition: player.c:76
static void on_player_media_subitems_changed(vlc_player_t *player, input_item_t *media, input_item_node_t *subitems, void *userdata)
Definition: player.c:106
static void on_player_media_length_changed(vlc_player_t *player, vlc_tick_t new_length, void *userdata)
Definition: player.c:89

Referenced by vlc_playlist_PlayerInit().

◆ player_media_provider

const struct vlc_player_media_provider player_media_provider
static
Initial value:
= {
.get_next = player_get_next_media,
}
static input_item_t * player_get_next_media(vlc_player_t *player, void *userdata)
Definition: player.c:116

Referenced by vlc_playlist_PlayerInit().