VLC 4.0.0-dev
|
Player timer callbacks. More...
#include <vlc_player.h>
Data Fields | |
void(* | on_update )(const struct vlc_player_timer_point *value, void *data) |
Called when the state or the time changed. More... | |
void(* | on_discontinuity )(vlc_tick_t system_date, void *data) |
The player is paused or a discontinuity occurred, likely caused by seek from the user or because the playback is stopped. More... | |
Player timer callbacks.
void(* vlc_player_timer_cbs::on_discontinuity) (vlc_tick_t system_date, void *data) |
The player is paused or a discontinuity occurred, likely caused by seek from the user or because the playback is stopped.
The player user should stop its "interpolate" timer.
system_date | system date of this event, only valid when paused. It can be used to interpolate the last updated point to this date in order to get the last paused ts/position. |
data | opaque pointer set by vlc_player_AddTimer() |
Referenced by vlc_player_UpdateTimerState().
void(* vlc_player_timer_cbs::on_update) (const struct vlc_player_timer_point *value, void *data) |
Called when the state or the time changed.
Get notified when the time is updated by the input or output source. The input source is the 'demux' or the 'access_demux'. The output source are audio and video outputs: an update is received each time a video frame is displayed or an audio sample is written. The delay between each updates may depend on the input and source type (it can be every 5ms, 30ms, 1s or 10s...). The user of this timer may need to update the position at a higher frequency from its own mainloop via vlc_player_timer_point_Interpolate().
value | always valid, the time corresponding to the state |
data | opaque pointer set by vlc_player_AddTimer() |
Referenced by vlc_player_AddSmpteTimer(), vlc_player_AddTimer(), and vlc_player_SendTimerSourceUpdates().