Implemented WebRTC peer-to-peer screen-roadcasting
This commit is contained in:
parent
62fc69489d
commit
96cdcfc840
5 changed files with 120 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue