VLC 4.0.0-dev
libvlc_media_player_time_point_t Struct Reference

Media Player timer point. More...

#include <libvlc_media_player.h>

Data Fields

double position
 Position in the range [0.0f;1.0]. More...
 
double rate
 Rate of the player. More...
 
int64_t ts_us
 Valid time, in us >= 0 or -1. More...
 
int64_t length_us
 Valid length, in us >= 1 or 0. More...
 
int64_t system_date_us
 System date, in us, of this record (always valid). More...
 

Detailed Description

Media Player timer point.

Note
ts and system_date values should not be used directly by the user. libvlc_media_player_time_point_interpolate() will read these values and return an interpolated ts.
See also
libvlc_media_player_watch_time_on_update

Field Documentation

◆ length_us

int64_t libvlc_media_player_time_point_t::length_us

Valid length, in us >= 1 or 0.

◆ position

double libvlc_media_player_time_point_t::position

Position in the range [0.0f;1.0].

◆ rate

double libvlc_media_player_time_point_t::rate

Rate of the player.

◆ system_date_us

int64_t libvlc_media_player_time_point_t::system_date_us

System date, in us, of this record (always valid).

Based on libvlc_clock(). This date can be in the future or in the past. The special value of INT64_MAX mean that the clock was paused when this point was updated. In that case, libvlc_media_player_time_point_interpolate() will return the current ts/pos of this point (there is nothing to interpolate).

◆ ts_us

int64_t libvlc_media_player_time_point_t::ts_us

Valid time, in us >= 0 or -1.


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