Audio or Video Playlist with "play next" by hotkey option?

DReffects

New Member
Hello there!

I am trying to advance through a playlist of audio files by hotkey and am unable to find a solution at the moment.

While there is a hotkey to play the next clip with the VLC media source, all MP3 Files I add to the source play automatically and the hotkey more or less is a "Start the playlist" hotkey.

I've tried the OBS Soundboard but it seems to require me to assign individual hotkeys for each individual sound.

I am looking for a way to play the next audio like i would advance to the next image in a OBS Slideshow.

Can you guys help me out? :)

Thanks!
 
ok here's an absurd solution.

  • Set-up VLC Media Player so it stops after playback when using playlists (go to advanced options under playlists)
  • Enable the web interface in VLC via Settings -> all settings -> interface -> main interface -> activate web
  • go to lua settings and specify a dummy password and set lua interface to "http"
  • you can now access a web based interface for playback at http://localhost:8080/
Now onwards to a Visual Basic Script (yes....)
I've used VB because it runs completely in the background and does not take focus of your current window when triggered by loupedeck or any other hotkey-stuff.

script for next item:

Code:
Option Explicit

Dim sh, cmd
Set sh = CreateObject("WScript.Shell")

cmd = "cmd /c curl -s ""http://:1234@localhost:8080/requests/status.xml?command=pl_next"" >nul 2>&1"

' 0 = versteckt, False = nicht warten
sh.Run cmd, 0, False

Code for previous item
Code:
Option Explicit

Dim sh, cmd
Set sh = CreateObject("WScript.Shell")

cmd = "cmd /c curl -s ""http://:1234@localhost:8080/requests/status.xml?command=pl_previous"" >nul 2>&1"

' 0 = versteckt, False = nicht warten
sh.Run cmd, 0, False

code for replay the current item:
Code:
Option Explicit

Dim sh, cmd
Set sh = CreateObject("WScript.Shell")

cmd = "cmd /c curl -s ""http://:1234@localhost:8080/requests/status.xml?command=seek&val=0"" >nul 2>&1"
cmd = "cmd /c curl -s ""http://:1234@localhost:8080/requests/status.xml?command=pl_play"" >nul 2>&1"

' 0 = versteckt, False = nicht warten
sh.Run cmd, 0, False

save the scripts as for example VLC_PL_NEXT.vbs and then simply point your hotkey or loupedeck run command option towards this.

from a dependency standpoint i really hate this since VLC has to be in a specific configuration. I still wish there would be a proper way to do this directly in OBS Studio.

Also, this only works for audio, since i don't see a decent way to transport video playback from the vlc window in 1:1 format directly over to OBS. I am using the "Application Audio Capture" source at the moment.
 
Back
Top