Gosignaler
A signaling server for hlsjs-p2p-engine, written by golang
Install / Use
/learn @cdnbye/GosignalerREADME
The signal server of hlsjs-p2p-engine
install dependency
git clone https://github.com/cdnbye/gosignaler.git
go get github.com/gorilla/websocket
compile
cd gosignaler && make
deploy
Upload binary file to server, create cert directory with crt.pem and crt.key, then start service:
chmod +x admin.sh
./admin.sh start
test
import Hls from 'cdnbye';
var hlsjsConfig = {
p2pConfig: {
wsSignalerAddr: 'ws://YOUR_SIGNAL',
// Other p2pConfig options provided by hlsjs-p2p-engine
}
};
// Hls constructor is overriden by included bundle
var hls = new Hls(hlsjsConfig);
// Use `hls` just like the usual hls.js ...
go语言版的 CDNBye 信令服务器,可用于Web、安卓、iOS SDK等所有CDNBye产品
安装依赖
git clone https://github.com/cdnbye/gosignaler.git
go get github.com/gorilla/websocket
编译二进制文件
cd gosignaler && make
部署
将编译生成的二进制文件上传至服务器,并在同级目录创建cert文件夹,将证书和秘钥文件分别改名为crt.pem和crt.key放入cert,之后启动服务:
chmod +x admin.sh
./admin.sh start
测试
import Hls from 'cdnbye';
var hlsjsConfig = {
p2pConfig: {
wsSignalerAddr: 'ws://YOUR_SIGNAL',
// Other p2pConfig options provided by hlsjs-p2p-engine
}
};
// Hls constructor is overriden by included bundle
var hls = new Hls(hlsjsConfig);
// Use `hls` just like the usual hls.js ...
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR
