Golang WebRTC server implementation.
-
A user, will enter the platform, at root route, and can opt for stream or watch a stream.
-
When theres a user streaming its screen, other users, can then opt for watch the stream.
Installing dependencies:
$ go mod tidy
- Directly using Go:
$ go build -ldflags='-s -w' -trimpath -o ./bin/go-webrtc ./cmd
- Using Makefile:
$ make build
./bin/go-webrtc
Specify the address and port to bind to through cli argument -addr. Like so:
./bin/go-webrtc -addr 192.168.2.44:3000
- Golang HTTP Server (stdlib);
- gorilla/websocket;
- HTML, Css and Javascript;
- MediaDevices Web-Api;
- WebSocket Web-Api;
This project is under MIT software license.