1. Library Install
node, yarn, mkcert install
# 1. Install mkcert
# windows
choco install mkcert
# linux
sudo apt-get install wget libnss3-tools
sudo apt-get install mkcert
# mac
brew install mkcert
# 2. make key file
mkcert -key-file ./key.pem -cert-file .cert.pem "localhost"
# 3. set key "keys.pem", ".cert.pem"
# in "https-webrtc-screen-share/client" and "https-webrtc-screen-share/keys"
2. To run project
# https-webrtc-screen-share
# yarn or yarn install
yarn install
npm start
# https-webrtc-screen-share/client
npm start --host 0.0.0.0:3000
3. create room and enter {your IP address}:3000/room/{your room id}
Notice!
1. Existing rooms can be reused.
2. Screen sharing is only available to the second entered host.
Example