VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_player_program |
Player program structure. More... | |
Functions | |
struct vlc_player_program * | vlc_player_program_Dup (const struct vlc_player_program *prgm) |
Duplicate a program. More... | |
void | vlc_player_program_Delete (struct vlc_player_program *prgm) |
Delete a duplicated program. More... | |
size_t | vlc_player_GetProgramCount (vlc_player_t *player) |
Get the number of programs. More... | |
const struct vlc_player_program * | vlc_player_GetProgramAt (vlc_player_t *player, size_t index) |
Get the program at a specific index. More... | |
const struct vlc_player_program * | vlc_player_GetProgram (vlc_player_t *player, int group_id) |
Get a program from an ES group identifier. More... | |
void | vlc_player_SelectProgram (vlc_player_t *player, int group_id) |
Select a program from an ES group identifier. More... | |
void | vlc_player_SelectNextProgram (vlc_player_t *player) |
Select the next program. More... | |
void | vlc_player_SelectPrevProgram (vlc_player_t *player) |
Select the previous program. More... | |
static const struct vlc_player_program * | vlc_player_GetSelectedProgram (vlc_player_t *player) |
Helper to get the current selected program. More... | |
const struct vlc_player_program * vlc_player_GetProgram | ( | vlc_player_t * | player, |
int | group_id | ||
) |
Get a program from an ES group identifier.
player | locked player instance |
group_id | a program ID (retrieved from vlc_player_cbs.on_program_list_changed or vlc_player_GetProgramAt()) |
References vlc_player_input::player, vlc_player_input::program_vector, vlc_player_get_input_locked(), and vlc_player_program_vector_FindById().
const struct vlc_player_program * vlc_player_GetProgramAt | ( | vlc_player_t * | player, |
size_t | index | ||
) |
Get the program at a specific index.
player | locked player instance |
index | valid index in the range [0; count[ |
References vlc_player_program_vector::data, vlc_player_input::player, vlc_player_input::program_vector, vlc_player_program_vector::size, and vlc_player_get_input_locked().
Referenced by vlc_player_CycleProgram(), and vlc_player_GetSelectedProgram().
size_t vlc_player_GetProgramCount | ( | vlc_player_t * | player | ) |
Get the number of programs.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::program_vector, vlc_player_program_vector::size, and vlc_player_get_input_locked().
Referenced by vlc_player_CycleProgram(), and vlc_player_GetSelectedProgram().
|
inlinestatic |
Helper to get the current selected program.
References count, vlc_player_program::selected, vlc_player_GetProgramAt(), and vlc_player_GetProgramCount().
void vlc_player_program_Delete | ( | struct vlc_player_program * | prgm | ) |
Delete a duplicated program.
References vlc_player_program::name.
Referenced by vlc_player_input_HandleProgramEvent().
struct vlc_player_program * vlc_player_program_Dup | ( | const struct vlc_player_program * | prgm | ) |
Duplicate a program.
This function can be used to pass a program from a callback to an other context.
References vlc_player_program::group_id, vlc_player_program::name, vlc_player_program::scrambled, vlc_player_program::selected, and vlc_player_program_New().
void vlc_player_SelectNextProgram | ( | vlc_player_t * | player | ) |
Select the next program.
player | locked player instance |
References vlc_player_CycleProgram().
void vlc_player_SelectPrevProgram | ( | vlc_player_t * | player | ) |
Select the previous program.
player | locked player instance |
References vlc_player_CycleProgram().
void vlc_player_SelectProgram | ( | vlc_player_t * | player, |
int | group_id | ||
) |
Select a program from an ES group identifier.
This function can be used to pre-select a program by its id before starting the player. It has only effect for the current media. It can also be used when the player is already started.
player | locked player instance |
group_id | a program ID (retrieved from vlc_player_cbs.on_program_list_changed or vlc_player_GetProgramAt()) |
References input_SetProgramId(), vlc_player_program::name, vlc_player_input::player, vlc_player_input::program_vector, vlc_player_input::thread, vlc_player_get_input_locked(), vlc_player_osd_Program(), and vlc_player_program_vector_FindById().
Referenced by vlc_player_CycleProgram().