Skip to content

Media controller for Spotify using VRChat OSC Supports now playing text using VRChat chatbox

License

Notifications You must be signed in to change notification settings

Jakhaxz/VRChatSpotifyControler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VRChatSpotifyControler

Media controller for Spotify using VRChat OSC
Supports now playing text using VRChat chatbox

Usage

Now Playing Chatbox

To use just the now playing chatbox, you only need to run the program while Spotify and VRChat are open.
To stop the now playing chatbox just close the program.

Media Controls

Adding the Media controls to your models allows you to control Spotify and also toggle the now playing chatbox, without closing the program.

In Unity set your avatar up with avatar 3.0 parameters:

pause-play : bool
next-track : bool
previous-track : bool
vol-slider : float
now-playing : bool

The names of the parameters must match exactly.

Avatar_Paramaters

Add 4 buttons and one radical puppet to your avatar 3.0 menu, and assign the paramaters as shown

Avatar_Menu Now_Playing

Upload your avatar, then start VRChat

Download the latest executable from releases and double click to run.

If all done correctly you can now control Spotify from your Avatar 3.0 menu

Running from source

Prerequisites

  • Python3

Getting Started

Download zip or clone repository Open Command Prompt and navigate to the extracted directory Install requirements

py -m pip install -r requirements.txt

Run main.py

py main.py

Troubleshooting

Stuck "Searching for an open Spotify.exe process..."

Make sure Spotify is open and if the message persists then play any song. This should cause the SystemMediaTransportControlsSession to be created for Spotify, that the application is looking for.

Volume control does not work

Volume control currently only works if the output device for Spotify is the default device.

Search for "Sound mixer options" in Windows start, find Spotify and make sure the Output is set to default. Spotify may need to be open and playing for it to show in the list.

Spotify_Sound_Mixer_Options