Continued work expirementing with WebRTC
This commit is contained in:
parent
3517a1499a
commit
86e9c586b6
7 changed files with 341 additions and 15 deletions
|
|
@ -307,6 +307,13 @@ class queuePanel extends panelObj{
|
|||
* @param {Event} event - Event passed down from Event Listener
|
||||
*/
|
||||
async goLive(event){
|
||||
//If we're broadcastinv via webrtc
|
||||
if(this.client.streamType == "webrtc"){
|
||||
this.client.webRTCHandler.isBroadcasting = true;
|
||||
|
||||
this.client.webRTCHandler.broadcastingStream = await navigator.mediaDevices.getDisplayMedia();
|
||||
}
|
||||
|
||||
//Start a livestream
|
||||
client.socket.emit('goLive',{title: this.goLiveNamePrompt.value, mode: event.target.dataset['mode']});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue