mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 23:52:16 +02:00
Make viewer able to change quality
This commit is contained in:
@ -40,7 +40,7 @@ export class GsWebSocket {
|
||||
setTimeout(() => this.sendDescription(localDescription, stream, quality), 100);
|
||||
return;
|
||||
}
|
||||
console.log("[WebSocket] Sending WebRTC local session description");
|
||||
console.log(`[WebSocket] Sending WebRTC local session description for stream ${stream} quality ${quality}`);
|
||||
this.socket.send(JSON.stringify({
|
||||
"webRtcSdp": localDescription,
|
||||
"stream": stream,
|
||||
|
@ -81,7 +81,7 @@ export function initViewerPage(stream, stunServers, viewersCounterRefreshPeriod)
|
||||
quality = event.target.value;
|
||||
console.log(`Stream quality changed to ${quality}`);
|
||||
|
||||
// Restart the connection with a new quality
|
||||
// FIXME
|
||||
// Restart WebRTC negociation
|
||||
webrtc.createOffer();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user