Google Play Music has been shut down and the YouTube Music flavor of Google Play Music Desktop Player does not work with this script. If you are looking for this feature with YouTube Music, please see the following repository:
Open Broadcaster Software (OBS) streaming helper for Google Play Music Desktop Player (GPMDP).
Listens to the WebSocket Playback interface of GPMDP and outputs formatted track information and album art files which can be consumed by OBS.
Handy for streaming currently played song from GPMDP and doesn't require configuration unless you want to customize the output.
- Output track information to a txt file which can then be used in OBS Studio
- Customizable track information display
- Output album art to a png file which can then be used in OBS Studio
- Customizable resolution
- Easy to use! (kinda... 😉)
Before using the script, you should make sure your GPMDP is ready to interact with it. Make sure the Playback API is enabled (Menu > Desktop Settings > Enable Playback API). Also make sure your firewall is configured properly by allowing access to Node.js and GPMDP if they ask for it.
If you have prior Node.js experience, this should be no problem. If you don't, I tried to make things as easy as possible :
- Install Node.js v12 (or whichever LTS is available when you are reading this). Ensure the tools are installed in your PATH (for Windows, this should be an option in the installer).
- Download this repo. (Click here to download the latest version as a zip)
- Extract somewhere you don't mind keeping it (for Windows, somewhere that doesn't require administrator access).
- Execute the
install.bat
file (Windows) orinstall.sh
file (Linux / macOS). You should be able to do that by double-clicking it. - Execute the
gpmdp_output.bat
file (Windows) orgpmdp_output.sh
file (Linux / macOS). You should be able to do that by double-clicking it. - To close the script, use CTRL+C or close the command prompt window.
Steps 1 - 4 only have to be done once. After that, simply execute the relevant gpmdp_output
file and let it run while GPMDP and your streaming application are open.
To add the current track info, add a new Text (GDI+) source. Check the "Read from file" box and choose the "Current_Track.txt" file generated by this program.
To add the album art, add a new Image source and select the Current_Album_Art.png file generated by this program.
Open the gpmdp_output.js file in a text editor and change the variables described at the beginning of the file. This configuration allows you to change the track format, album art size and so forth.
By default, all files will be written in the same folder as the script. This can also be changed by using the configuration.
Special thanks to GPMDP for the awesome application and easy to use API!