🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/onfirebyte/snip-websocket-addon

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/onfirebyte/snip-websocket-addon

v0.0.0-20220504084704-dc79ba937daf
Source
Go
Version published
Created
Source

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

    # without console *recommended*
    go build -ldflags -H=windowsgui
    
    # with console
    go build
    

FAQs

Package last updated on 04 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts