mirror of https://github.com/OpenVidu/openvidu.git
ov-components: emit room created event after participant connection
parent
9b4f330c4a
commit
3defad20cc
|
@ -185,7 +185,6 @@ export class SessionComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.room = this.openviduService.getRoom();
|
this.room = this.openviduService.getRoom();
|
||||||
this.onRoomCreated.emit(this.room);
|
|
||||||
|
|
||||||
// this.subscribeToCaptionLanguage();
|
// this.subscribeToCaptionLanguage();
|
||||||
this.subcribeToActiveSpeakersChanged();
|
this.subcribeToActiveSpeakersChanged();
|
||||||
|
@ -208,6 +207,8 @@ export class SessionComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await this.participantService.connect();
|
await this.participantService.connect();
|
||||||
|
// Send room created after participant connect for avoiding to send incomplete room payload
|
||||||
|
this.onRoomCreated.emit(this.room);
|
||||||
this.cd.markForCheck();
|
this.cd.markForCheck();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.onParticipantCreated.emit(this.participantService.getLocalParticipant());
|
this.onParticipantCreated.emit(this.participantService.getLocalParticipant());
|
||||||
|
|
Loading…
Reference in New Issue