From: gparant Date: Wed, 29 Apr 2020 15:49:40 +0000 (+0200) Subject: Refactor X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=58df4118d1db8cd037b6090b4fbe2fbb742b2ba5;p=libreadventure.git Refactor --- diff --git a/front/src/WebRtc/SimplePeer.ts b/front/src/WebRtc/SimplePeer.ts index b04511d..3c94bba 100644 --- a/front/src/WebRtc/SimplePeer.ts +++ b/front/src/WebRtc/SimplePeer.ts @@ -8,14 +8,14 @@ export interface SimplePeerInterface { export class SimplePeer { Connexion: ConnexionInterface; MediaManager: MediaManager; - RoomId: string; + WebRtcRoomId: string; Users: Array; PeerConnexionArray: Array = new Array(); - constructor(Connexion: ConnexionInterface, roomId: string = "test-webrtc") { + constructor(Connexion: ConnexionInterface, WebRtcRoomId: string = "test-webrtc") { this.Connexion = Connexion; - this.RoomId = roomId; + this.WebRtcRoomId = WebRtcRoomId; this.MediaManager = new MediaManager(); this.initialise(); } @@ -62,7 +62,7 @@ export class SimplePeer { */ receiveWebrtcStart(message: string) { let data = JSON.parse(message); - this.RoomId = data.roomId; + this.WebRtcRoomId = data.roomId; this.Users = data.clients; //active button for player @@ -108,7 +108,7 @@ export class SimplePeer { * @param data */ sendWebrtcSignal(data: any, userId : string) { - this.Connexion.sendWebrtcSignal(data, this.RoomId, null, userId); + this.Connexion.sendWebrtcSignal(data, this.WebRtcRoomId, null, userId); } /**