Author Topic: VLC Music Player Adding Playlist Tracks  (Read 2999 times)

FunkamusPrime

  • Guest
VLC Music Player Adding Playlist Tracks
« on: February 28, 2017, 08:21:17 PM »
Hi Everyone,

I have 2 playlists of music, "Rock" and "Sci Fi".  I have a command "Play Rock" that launches VLC and plays the Rock playlist, and a "Play Sci Fi" command to play the Sci Fi playlist.  It works fine unless I am already playing one of the playlists.  For example, if I'm listening to the Rock Playlist and decide I'm in more of a mood for Sci Fi soundtracks.  I'll say "Play Sci Fi", Voice Attack executes the command, and all of the tracks in the Sci Fi playlist are added to the rock tracks already playing.  So I end up still hearing 2 Rock Tracks for every Sci Fi one.

What I need it to do is if I'm listening to one playlist, and use the command to launch another one, it should ditch the currently playing playlist and replace it with the new one.  So, using the example above, I no longer hear Rock tracks and only hear Sci Fi tracks moving forward.

Does anyone know how to set this up in VLC?  Thanks!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: VLC Music Player Adding Playlist Tracks
« Reply #1 on: February 28, 2017, 09:07:32 PM »
Doing some searching, there doesn't appear to be an option to disable the default "add everything to the same playlist" behavior.

There is an alternative, which works fine, even if it's not ideal:
Code: [Select]
Press Left Ctrl+W keys and hold for 0,01 seconds and release
Run application 'C:\Program Files (x86)\VideoLAN\VLC\vlc.exe' -with parameters '"A:\Music\Eduard Khil - I Am Very Glad, Because I'm Finally Returning Back Home"'
The caveat is that you need to set a global hotkey for the "Clear the playlist" binding(Ctrl+W is the default, but it's not global), or send the keypress to VLC explicitly(which will focus it, pulling you out of most games).

There's no documented method of clearing the playlist "remotely" other than the keypress, from what I can find. A commandline parameter would've been nice, but 'tis not to be.