getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: Arkada on March 25, 2020, 04:04:12 AM

Title: Accessing Current Playlist
Post by: Arkada on March 25, 2020, 04:04:12 AM
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).
Title: Re: Accessing Current Playlist
Post by: Steven on March 25, 2020, 08:22:48 AM
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
Title: Re: Accessing Current Playlist
Post by: Arkada on March 25, 2020, 06:10:27 PM
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.