A demo application of mediasoup-go.
- Clone the project:
$ git clone https://github.com/jiyeyuran/mediasoup-go-demo.git
$ cd mediasoup-go-demo
- Set up the mediasoup-go-demo server:
$ cd server
$ go build
-
Make sure TLS certificates reside in
server/certs
directory with namesfullchain.pem
andprivkey.pem
. -
Within your server, run the application by setting the
DEBUG
environment variable according to your needs (more info):
$ DEBUG="*mediasoup* *ERROR* *WARN*" MEDIASOUP_WORKER_BIN="the path of worker bin" ./server
- Set up the mediasoup-go-demo browser app:
$ cd app
$ npm install
- Run the Node.js server application in a terminal:
$ cd server
$ MEDIASOUP_WORKER_BIN="the path of worker bin" ./server
- In a different terminal build and run the browser application:
$ cd app
$ npm start
- Enjoy.
MIT