mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-24 12:32:20 +00:00
Fix sendLocalDescription retry in web client
This commit is contained in:
parent
ff2ebd76f1
commit
cdb56c8bf5
@ -37,7 +37,7 @@ export class GsWebSocket {
|
|||||||
sendLocalDescription(localDescription, stream, quality) {
|
sendLocalDescription(localDescription, stream, quality) {
|
||||||
if (this.socket.readyState !== 1) {
|
if (this.socket.readyState !== 1) {
|
||||||
console.log("[WebSocket] Waiting for connection to send data...");
|
console.log("[WebSocket] Waiting for connection to send data...");
|
||||||
setTimeout(() => this.sendDescription(localDescription, stream, quality), 100);
|
setTimeout(() => this.sendLocalDescription(localDescription, stream, quality), 100);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`[WebSocket] Sending WebRTC local session description for stream ${stream} quality ${quality}`);
|
console.log(`[WebSocket] Sending WebRTC local session description for stream ${stream} quality ${quality}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user