Skip to content

unixabg/webrtc-cast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webrtc-cast

Use WebRTC to cast chrome

Requirements

  • Linux
    • Tested with Debian and PiOS
  • nodejs, npm, git, and chromium
  • npm install express

Notes

  • Clone the project.
  • Move to the cloned directory: cd webrtc-cast
  • If you don't have ssl certs generate self sigend with: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
  • To start the services sometimes I launch each service in an individual terminal so I can debug issues.
    • Launch the https and websocket server on port 8443: nodejs nodejs/ws.js
  • On both the client and the server you need to accept the ssl certificates. In general setup I run the socket server and the web server on ws-server:8443.
  • Lanuch chromium in kiosk mode with something like this: chromium --disable-features=PreloadMediaEngagementData,MediaEngagementBypassAutoplayPolicies --autoplay-policy=no-user-gesture-required --ignore-certificate-errors --ignore-urlfetcher-cert-requests --ignore-websocket-cert-errors --kiosk https://localhost:8443/listening-chrome.html
  • Or like this: chromium --disable-features=PreloadMediaEngagementData,MediaEngagementBypassAutoplayPolicies --autoplay-policy=no-user-gesture-required --ignore-certificate-errors --ignore-urlfetcher-cert-requests --ignore-websocket-cert-errors --kiosk file:///home/kiosk/webrtc-cast/html/listening-chrome.html
  • On the client machine go to https://ws-server:8443 to start casting.

FIXME