mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: Publisher's stream streamId got from openvidu-server
parent
9def6c6056
commit
c7dd18c21c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue