libvlc_media_player_get_position() resolution
Posted: 30 Mar 2019 08:31
Hello,
I am trying to implement some logic around the media position of videos.
It seems that the resolution of libvlc_MediaPlayerPositionChanged callback or libvlc_media_player_get_position() is about 250ms. This value is very high.
For confirmation, I checked the static void *vlc_demux_chained_Thread(void *data) in demux_chained.c:
next_update = vlc_tick_now() + VLC_TICK_FROM_MS(250);
It there any way (when applicable, i.e. file-based media) to get the frame-accurate current media position (or video PTS) ?
Cheers,
Mik
I am trying to implement some logic around the media position of videos.
It seems that the resolution of libvlc_MediaPlayerPositionChanged callback or libvlc_media_player_get_position() is about 250ms. This value is very high.
For confirmation, I checked the static void *vlc_demux_chained_Thread(void *data) in demux_chained.c:
next_update = vlc_tick_now() + VLC_TICK_FROM_MS(250);
It there any way (when applicable, i.e. file-based media) to get the frame-accurate current media position (or video PTS) ?
Cheers,
Mik