Thanks to Fiber & pion webRTC, I make a broadcasting webRTC service on Fiber websocket.
- Reference
git clone https://github.com/rlaminseok0824/webRTC-broadcasting.git
cd webRTC-broadcasting
go mod tidy
go run main.go
- you can start with Dockerfile
docker build -t webrtc-broadcasting .
- Then, start docker with below code.
docker run -p 3000:3000 -p 4040:4040 webrtc-broadcasting
📦webRTC-broadcasting
┣ 📂grpc
┃ ┗ 📜server.go
┣ 📂handler
┃ ┣ 📜broadcast.go
┃ ┣ 📜handler.go
┃ ┣ 📜model.go
┃ ┗ 📜view.go
┣ 📂proto
┃ ┣ 📜service.pb.go
┃ ┣ 📜service.proto
┃ ┗ 📜service_grpc.pb.go
┣ 📂utils
┃ ┗ 📜convert.go
┣ 📜.gitignore
┣ 📜Dockerfile
┣ 📜README.md
┣ 📜go.mod
┣ 📜go.sum
┗ 📜main.go