Continued work expirementing with WebRTC

This commit is contained in:
rainbow napkin 2026-09-24 17:16:29 -04:00
parent 3517a1499a
commit 86e9c586b6
7 changed files with 341 additions and 15 deletions

View file

@ -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']});
}