Page 1 of 1

Get the current time of a track and print it

Posted: 18 Jun 2017 00:31
by Thib_760
Hello, iam new into the libVLC developement, and iam actualy writing an audio reader using gtk+ and libvlc.
My actual problème is how can i catch the time of the music track iam playing and how can i print it on my mainwindow's program.

i get the time of the track by using libvlc_clock() function, but i dunno how can i print it in my mainwindow.i also wonder how to get the total music time of the track.
I searched in the doc of libvlc but iam a bit lost, so anyone can give me some help, that will be nice.

Thanks !

Re: Get the current time of a track and print it

Posted: 27 Jul 2017 10:09
by Jean-Baptiste Kempf
libvlc_media_player_get_length and libvlc_media_player_get_time