Author Topic: Accessing Current Playlist  (Read 3975 times)

Arkada

  • Newbie
  • *
  • Posts: 6
I'm working on my first plugin, and was wondering if there was a way to access the playlist that the currently playing track belonged to (if any).

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
use NowPlaying_GetFileUrl to get the url for the current track
then try using Library_GetFileTag with 72 as the parameter value which should return a list of ; delimited playlists for the file url you pass as the parameter
and then there are various Playlist_xxx commands

Arkada

  • Newbie
  • *
  • Posts: 6
Is there a way to get the specific playlist that is being played? If the track being played was in two different playlists, would there be a way to distinguish which playlist the track was being played from, if it was being played from a playlist to begin with?
I guess the core of what I'm asking is if MusicBee has a way of knowing which playlist is currently being played, or if when a playlist is selected, the files within it are loaded into queue and nothing more.