openvidu-browser: Publisher's stream streamId got from openvidu-server

pull/88/merge
pabloFuente 2018-06-15 16:05:27 +02:00
parent 9def6c6056
commit c7dd18c21c
1 changed files with 1 additions and 3 deletions

View File

@ -129,15 +129,12 @@ export class Stream {
if (this.isSendVideo()) { if (this.isSendVideo()) {
if (this.isSendScreen()) { if (this.isSendScreen()) {
this.streamId = 'SCREEN';
this.typeOfVideo = 'SCREEN'; this.typeOfVideo = 'SCREEN';
} else { } else {
this.streamId = 'CAMERA';
this.typeOfVideo = 'CAMERA'; this.typeOfVideo = 'CAMERA';
} }
this.frameRate = this.outboundStreamOpts.publisherProperties.frameRate; this.frameRate = this.outboundStreamOpts.publisherProperties.frameRate;
} else { } else {
this.streamId = 'MICRO';
delete this.typeOfVideo; delete this.typeOfVideo;
} }
this.hasAudio = this.isSendAudio(); this.hasAudio = this.isSendAudio();
@ -412,6 +409,7 @@ export class Stream {
} else { } else {
this.webRtcPeer.processAnswer(response.sdpAnswer) this.webRtcPeer.processAnswer(response.sdpAnswer)
.then(() => { .then(() => {
this.streamId = response.id;
this.isLocalStreamPublished = true; this.isLocalStreamPublished = true;
if (this.displayMyRemote()) { if (this.displayMyRemote()) {
this.remotePeerSuccesfullyEstablished(); this.remotePeerSuccesfullyEstablished();