diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts index d89afa3a..9b3876c5 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts @@ -65,7 +65,6 @@ export class SessionComponent implements OnInit, OnDestroy { @ContentChild('layout', { read: TemplateRef }) layoutTemplate: TemplateRef; @Input() usedInPrejoinPage = false; - @Output() onSessionCreated = new EventEmitter(); @Output() onNodeCrashed = new EventEmitter(); @@ -187,7 +186,6 @@ export class SessionComponent implements OnInit, OnDestroy { if (recordingEnabled) { this.subscribeToRecordingEvents(); } - this.onSessionCreated.emit(this.session); await this.connectToSession(); // ios devices appear with blank video. Muting and unmuting it fix this problem diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html index fef8d3ff..db71d541 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html @@ -15,7 +15,7 @@
- + diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts index c234b388..62cf7ff0 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts @@ -559,6 +559,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni await this.initwebcamPublisher(); } this.isSessionInitialized = true; + this.onSessionCreated.emit(this.openviduService.getWebcamSession()); this.onParticipantCreated.emit(this.participantService.getLocalParticipant()); this.loading = false; this.participantReady = true; @@ -676,13 +677,6 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni this.onActivitiesPanelDeleteRecordingClicked.emit(recordingId); } - /** - * @internal - */ - _onSessionCreated(session: Session) { - this.onSessionCreated.emit(session); - } - /** * @internal */