VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_player_timer_smpte_cbs Struct Reference

Player smpte timer callbacks. More...

#include <vlc_player.h>

Data Fields

void(* on_update )(const struct vlc_player_timer_smpte_timecode *tc, void *data)
 Called when a new frame is displayed.
 
void(* on_paused )(vlc_tick_t system_date, void *data)
 The player timer is paused (can be NULL).
 
void(* on_seek )(const struct vlc_player_timer_point *value, void *data)
 Called when the player is seeking or finished seeking (can be NULL).
 

Detailed Description

Player smpte timer callbacks.

See also
vlc_player_AddSmpteTimer

Field Documentation

◆ on_paused

void(* vlc_player_timer_smpte_cbs::on_paused) (vlc_tick_t system_date, void *data)

The player timer is paused (can be NULL).

See also
vlc_player_timer_cbs.on_paused

Referenced by vlc_player_SendTimerPause().

◆ on_seek

void(* vlc_player_timer_smpte_cbs::on_seek) (const struct vlc_player_timer_point *value, void *data)

Called when the player is seeking or finished seeking (can be NULL).

Warning
The player is not locked from this callback. It is forbidden to call any player functions from here.
the value is parameter is a timestamp point and not a timecode, as this is an approximation.
Note
on_update() can be called when seeking. It corresponds to tracks updating their points prior to receiving the asynchronous seek event. The user could discard them manually.
Parameters
valuepoint of the seek request or NULL when seeking is finished
dataopaque pointer set by vlc_player_AddTimer()

Referenced by vlc_player_SendTimerSeek().

◆ on_update

void(* vlc_player_timer_smpte_cbs::on_update) (const struct vlc_player_timer_smpte_timecode *tc, void *data)

Called when a new frame is displayed.

Warning
The player is not locked from this callback. It is forbidden to call any player functions from here.
Parameters
tcalways valid, the timecode corresponding to the frame just displayed
dataopaque pointer set by vlc_player_AddTimer()

Referenced by vlc_player_SendSmpteTimerSourceUpdates().


The documentation for this struct was generated from the following file: