Media controller for Spotify using VRChat OSC
Supports now playing text using VRChat 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.
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.
Add 4 buttons and one radical puppet to your avatar 3.0 menu, and assign the paramaters as shown
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
- Python3
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
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 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.