Page 1 of 1

What is the best way to know when a track has ended ?

Posted: 28 Oct 2020 12:07
by Asger-P
Hi

As the header say: What is the best way to know when a track has ended ?
Apart from listening of course. :)

I can of course in a timer ask libvlc_media_player_is_playing but I thought maybe there is an event.

Thanks in advance
Best regards
Asger

Re: What is the best way to know when a track has ended ?

Posted: 28 Oct 2020 15:45
by sherington
There is a "finished" event.

Re: What is the best way to know when a track has ended ?

Posted: 28 Oct 2020 20:42
by Asger-P
Thanks for trying sherington, but I cant find anything mentioning finished in the h files.

Re: What is the best way to know when a track has ended ?

Posted: 29 Oct 2020 04:58
by mfkl

Code: Select all

libvlc_MediaPlayerEndReached

Re: What is the best way to know when a track has ended ?

Posted: 29 Oct 2020 07:24
by Asger-P
Thanks Martin
Just what I was looking for.
Best regards
Asger

Re: What is the best way to know when a track has ended ?

Posted: 29 Oct 2020 19:36
by sherington
Yeah sorry, I translate end reached to finished in my own library. Oops.