From c7dd18c21c9a5a828ca54a8021c93312037ac7fe Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 15 Jun 2018 16:05:27 +0200 Subject: [PATCH] openvidu-browser: Publisher's stream streamId got from openvidu-server --- openvidu-browser/src/OpenVidu/Stream.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openvidu-browser/src/OpenVidu/Stream.ts b/openvidu-browser/src/OpenVidu/Stream.ts index 5c77da9d..d71549ea 100644 --- a/openvidu-browser/src/OpenVidu/Stream.ts +++ b/openvidu-browser/src/OpenVidu/Stream.ts @@ -129,15 +129,12 @@ export class Stream { if (this.isSendVideo()) { if (this.isSendScreen()) { - this.streamId = 'SCREEN'; this.typeOfVideo = 'SCREEN'; } else { - this.streamId = 'CAMERA'; this.typeOfVideo = 'CAMERA'; } this.frameRate = this.outboundStreamOpts.publisherProperties.frameRate; } else { - this.streamId = 'MICRO'; delete this.typeOfVideo; } this.hasAudio = this.isSendAudio(); @@ -412,6 +409,7 @@ export class Stream { } else { this.webRtcPeer.processAnswer(response.sdpAnswer) .then(() => { + this.streamId = response.id; this.isLocalStreamPublished = true; if (this.displayMyRemote()) { this.remotePeerSuccesfullyEstablished();