/mediasoup-go-demo

A demo application for testing mediasoup-go

Primary LanguageJavaScriptMIT LicenseMIT

mediasoup-go-demo

A demo application of mediasoup-go.

Installation

  • 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 names fullchain.pem and privkey.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 it locally

  • 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.

License

MIT