go-p2p-server

command module
v0.0.0-...-3f94a61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 5 Imported by: 0

README

go-p2p-server

Web P2P 服务器,依托cdnbye的源码和klink.tech页面而开发的服务器。

前端

应用地址

接入

var hlsjsConfig = {
    debug: true,
    // Other hlsjsConfig options provided by hls.js
    p2pConfig: {
    	announce: "https://gop2p.cachecha.com",
        wsSignalerAddr: 'wss://gop2p.cachecha.com/ws',
        logLevel: 'debug',
        // Other p2pConfig options if applicable
    }
};
// Hls constructor is overriden by included bundle
var hls = new Hls(hlsjsConfig);
// Use hls just like the usual hls.js ...
hls.loadSource(contentUrl);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
    video.play();
});

快速安装

curl -fsSL  https://raw.githubusercontent.com/midoks/go-p2p-server/master/scripts/install.sh | sh

快速开发

curl -fsSL  https://raw.githubusercontent.com/midoks/go-p2p-server/master/scripts/install_dev.sh | sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
assets/conf
Code generated for package conf by go-bindata DO NOT EDIT.
Code generated for package conf by go-bindata DO NOT EDIT.
assets/public
Code generated for package public by go-bindata DO NOT EDIT.
Code generated for package public by go-bindata DO NOT EDIT.
assets/templates
Code generated for package templates by go-bindata DO NOT EDIT.
Code generated for package templates by go-bindata DO NOT EDIT.
cmd
hub
mem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL