1
0
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:
Alexandre Iooss
2020-10-22 18:41:14 +02:00
parent 4cbb1d8192
commit ff2ebd76f1
4 changed files with 11 additions and 11 deletions

View File

@ -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,

View File

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