/ScreenShareMediaSoup

A screensharing system built with mediasoup

Primary LanguageJavaScriptMIT LicenseMIT

EDIT: This is a modified version of an example of using mediasoup v3 from mganeko

Original Code: https://github.com/mganeko/mediasoup_v3_example

The modifications mainly include adding room capability to the broadcast example, and switching to screenshare instead of webcam to allow for a multi tennant screensharing system with one to many broadcast capability. This is intended for use inside the VR app Banter - https://bantervr.com

mediasoup_v3_example

Examples for WebRTC SFU mediasoup v3 with node.js

Node.jsで動くWebRTC SFU mediasoup v3のサンプルです。

  • v3.x用に作り直しました。v1.xやv2.xでは動作しません。
  • mkhahaniさんのmediasoup-sample-appを参考にしています
  • macOS 10.13 High Sierraで動作確認しています

Installation

git clone

$ https://github.com/mganeko/mediasoup_v3_example.git

install npm modules

$ npm install socket.io
$ npm install express
$ npm install socket.io
$ npm install mediasoup@3
$ npm install mediasoup-client@3
$ npm install browserify

or

$ npm install

build client library

$ npm run build-client

How to use

broadcast (1 to many)

$ npm run broadast

open http://localhost:3000/publish.html?room=something&fps=30&width=1920&height=1080 with browser for publisher

open http://localhost:3000/?room=something with browser for subscriber

License / ライセンス

  • This samples are under the MIT license
  • このサンプルはMITランセンスで提供されます