VLC 4.0.0-dev
Loading...
Searching...
No Matches
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_state_changed (vlc_player_t *player, enum vlc_player_state new_state, 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)
 
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.
 
int vlc_playlist_Start (vlc_playlist_t *playlist)
 Start the player.
 
void vlc_playlist_Stop (vlc_playlist_t *playlist)
 Stop the player.
 
void vlc_playlist_Pause (vlc_playlist_t *playlist)
 Pause the player.
 
void vlc_playlist_Resume (vlc_playlist_t *playlist)
 Resume the player.
 
void vlc_playlist_SetMediaStoppedAction (vlc_playlist_t *playlist, enum vlc_playlist_media_stopped_action action)
 Setup an action when a media is stopped.
 

Variables

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

◆ on_player_state_changed()

static void on_player_state_changed ( vlc_player_t player,
enum vlc_player_state  new_state,
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_state_changed = on_player_state_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:37
static void on_player_media_meta_changed(vlc_player_t *player, input_item_t *media, void *userdata)
Definition player.c:93
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:123
static void on_player_media_length_changed(vlc_player_t *player, vlc_tick_t new_length, void *userdata)
Definition player.c:106
static void on_player_state_changed(vlc_player_t *player, enum vlc_player_state new_state, void *userdata)
Definition player.c:82

Referenced by vlc_playlist_PlayerInit().