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

This forum is about all development around libVLC.
Asger-P
New Cone
New Cone
Posts: 7
Joined: 28 Oct 2020 12:02

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

Postby Asger-P » 28 Oct 2020 12:07

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

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

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

Postby sherington » 28 Oct 2020 15:45

There is a "finished" event.

Asger-P
New Cone
New Cone
Posts: 7
Joined: 28 Oct 2020 12:02

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

Postby Asger-P » 28 Oct 2020 20:42

Thanks for trying sherington, but I cant find anything mentioning finished in the h files.

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

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

Postby mfkl » 29 Oct 2020 04:58

Code: Select all

libvlc_MediaPlayerEndReached
https://mfkl.github.io

Asger-P
New Cone
New Cone
Posts: 7
Joined: 28 Oct 2020 12:02

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

Postby Asger-P » 29 Oct 2020 07:24

Thanks Martin
Just what I was looking for.
Best regards
Asger

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

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

Postby sherington » 29 Oct 2020 19:36

Yeah sorry, I translate end reached to finished in my own library. Oops.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests