From 15be76655fca1f0d60b029648059fb38d06a6947 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Fri, 28 Jan 2022 18:42:48 +0100 Subject: [PATCH] Add todo to improve status management Signed-off-by: Gregoire Parant --- front/src/WebRtc/ScreenSharingPeer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/WebRtc/ScreenSharingPeer.ts b/front/src/WebRtc/ScreenSharingPeer.ts index 292dc35d..3f953709 100644 --- a/front/src/WebRtc/ScreenSharingPeer.ts +++ b/front/src/WebRtc/ScreenSharingPeer.ts @@ -141,8 +141,9 @@ export class ScreenSharingPeer extends Peer { if (!stream) { this.isReceivingStream = false; } else { - //Check if the peer connection is already in connect status. In this case, the status store must be set to 'connected'. - //In the case or player A send stream and player B send a stream, it's same peer connection, also the status must be changed to connected. + //Check if the peer connection is already connected status. In this case, the status store must be set to 'connected'. + //In the case or player A send stream and player B send a stream, it's same peer connection, also the status must be changed to connect. + //TODO add event listening when the stream is ready for displaying and change the status if (this._connected) { this.statusStore.set("connected"); }