VLC  4.0.0-dev
Functions
External renderer control
Collaboration diagram for External renderer control:

Functions

VLC_EXPORT void vlc_player_SetRenderer (vlc_player_t *player, vlc_renderer_item_t *renderer)
 Set the renderer. More...
 
VLC_EXPORT vlc_renderer_item_tvlc_player_GetRenderer (vlc_player_t *player)
 Get the renderer. More...
 

Detailed Description

Function Documentation

◆ vlc_player_GetRenderer()

VLC_EXPORT vlc_renderer_item_t* vlc_player_GetRenderer ( vlc_player_t player)

Get the renderer.

See also
vlc_player_cbs.on_renderer_changed
Parameters
playerlocked player instance
Returns
the renderer item set by vlc_player_SetRenderer()

References vlc_player_input::player, vlc_player_t::renderer, and vlc_player_assert_locked().

◆ vlc_player_SetRenderer()

VLC_EXPORT void vlc_player_SetRenderer ( vlc_player_t player,
vlc_renderer_item_t renderer 
)

Set the renderer.

Valid for the current media and all future ones.

Note
A successful call will trigger the vlc_player_cbs.on_renderer_changed event.
Parameters
playerlocked player instance
renderera valid renderer item or NULL (to disable it), the item will be held by the player

References INPUT_CONTROL_SET_RENDERER, input_ControlPushHelper(), vlc_value_t::p_address, vlc_player_input::player, vlc_player_t::renderer, vlc_player_assert_locked(), vlc_player_foreach_inputs, vlc_player_SendEvent, vlc_renderer_item_hold(), and vlc_renderer_item_release().