How to get index number from playlist?

This forum is about all development around libVLC.
JKJones
New Cone
New Cone
Posts: 6
Joined: 28 Apr 2020 15:40

How to get index number from playlist?

Postby JKJones » 03 Jan 2021 20:27

I'm using the Python API to play a list of songs from a playlist.
MediaPlayer.play() starts playing the first song in the list, and MediaPlayer.next and MediaPlayer.previous move to the next or previous songs. For each time MediaPlayer starts playing a new song I'm trying to find the index of the song in the list, so that I can display the song title. But I can't see a way to find the index, or number, for the current position in the list. Is there a way? Thanks.

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests