Implemented WebRTC peer-to-peer screen-roadcasting

This commit is contained in:
rainbow napkin 2026-09-28 03:25:56 -04:00
parent 62fc69489d
commit 96cdcfc840
5 changed files with 120 additions and 29 deletions

View file

@ -309,9 +309,11 @@ class queuePanel extends panelObj{
async goLive(event){
//If we're broadcastinv via webrtc
if(this.client.streamType == "webrtc"){
this.client.webRTCHandler.isBroadcasting = true;
await this.client.webRTCHandler.startStream();
this.client.webRTCHandler.broadcastingStream = await navigator.mediaDevices.getDisplayMedia();
//this.client.webRTCHandler.isBroadcasting = true;
//this.client.webRTCHandler.broadcastingStream = await navigator.mediaDevices.getDisplayMedia();
}
//Start a livestream