The signal server of hlsjs-p2p-engine

build

  • install dependency

  • go build main.go hub.go handler.go client.go

test

import Hls from 'cdnbye';
var hlsjsConfig = {
    p2pConfig: {
        wsSignalerAddr: 'ws://localhost:8081/ws',
        // 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语言版的 hlsjs-p2p-engine信令服务器