From c16f4b96641a58849f56ddb6df9c511a445bcd4e Mon Sep 17 00:00:00 2001 From: Juan Navarro Date: Fri, 11 Jun 2021 14:57:19 +0200 Subject: [PATCH] WebRtcPeer: avoid getter syntax that doesn't compile with old Angular in testapp --- openvidu-browser/src/OpenVidu/Stream.ts | 2 +- openvidu-browser/src/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openvidu-browser/src/OpenVidu/Stream.ts b/openvidu-browser/src/OpenVidu/Stream.ts index f771be33..dc80bc17 100644 --- a/openvidu-browser/src/OpenVidu/Stream.ts +++ b/openvidu-browser/src/OpenVidu/Stream.ts @@ -481,7 +481,7 @@ export class Stream { let webrtcId; if (!!this.webRtcPeer) { this.webRtcPeer.dispose(); - webrtcId = this.webRtcPeer.id; + webrtcId = this.webRtcPeer.getId(); } this.stopWebRtcStats(); logger.info((!!this.outboundStreamOpts ? 'Outbound ' : 'Inbound ') + "RTCPeerConnection with id [" + webrtcId + "] from 'Stream' with id [" + this.streamId + '] is now closed'); diff --git a/openvidu-browser/src/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts b/openvidu-browser/src/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts index 2d610fb1..c48e5970 100644 --- a/openvidu-browser/src/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts +++ b/openvidu-browser/src/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts @@ -97,7 +97,7 @@ export class WebRtcPeer { }); } - get id(): string { + getId(): string { return this.configuration.id; }