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; }