mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-25 02:32:19 +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