Snip-Websocket-Addon
A very small program that build with Go. Its purpose is to serve now-playing track's data via web-sockets, work with (and require) Snip as its dependency (Like the name suggests).
This project also includes a simple webpage that can be used as an overlay in live streaming.
How to use
- move the executable file to Snip's folder
- In Snip setting, enable "Save infomation separately"
- Run the executable file
- The websocket server can be accessed via localhost:5487/ws, the track's artwork also can be accessed via localhost:5487/artwork
- (optional) You can get simple now-playing overlay by adding browser layer to your live stream application, then point to the html file.
How to compile
-
Install 2goarray
go install github.com/cratonica/2goarray
-
Go to /server/icon and run bat/sh file
Windows (Powershell)
.\server\icon\make_icon.bat
Linux
.\server\icon\make_icon.sh
-
Install go-winres and run (Optional, require for changing icon)
go install github.com/tc-hib/go-winres@latest
go-winres make
-
compile go file
go build -ldflags -H=windowsgui
go build