diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts index b103a072..e1a3d9ea 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts @@ -85,9 +85,9 @@ export class SessionComponent implements OnInit, OnDestroy { @Output() onRoomDisconnected: EventEmitter = new EventEmitter(); /** - * Provides event notifications that fire when local participant is created and connected to the Room. + * Provides event notifications that fire when local participant is connected to the Room. */ - @Output() onParticipantCreated: EventEmitter = new EventEmitter(); + @Output() onParticipantConnected: EventEmitter = new EventEmitter(); room: Room; sideMenu: MatSidenav; @@ -210,7 +210,7 @@ export class SessionComponent implements OnInit, OnDestroy { this.onRoomCreated.emit(this.room); this.cd.markForCheck(); this.loading = false; - this.onParticipantCreated.emit(this.participantService.getLocalParticipant()); + this.onParticipantConnected.emit(this.participantService.getLocalParticipant()); } catch (error) { this.log.e('There was an error connecting to the room:', error.code, error.message); this.actionService.openDialog(this.translateService.translate('ERRORS.SESSION'), error?.error || error?.message || error); diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html index a87f3ef8..70767213 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html @@ -27,7 +27,8 @@ (onRoomReconnecting)="onRoomDisconnected.emit()" (onRoomDisconnected)="onRoomDisconnected.emit()" (onRoomReconnected)="onRoomReconnected.emit()" - (onParticipantCreated)="onParticipantCreated.emit($event)" + (onParticipantConnected)="onParticipantCreated.emit($event)" + (onParticipantConnected)="onParticipantConnected.emit($event)" > diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.ts index 58d6ef27..a9b34a9c 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.ts @@ -341,10 +341,16 @@ export class VideoconferenceComponent implements OnDestroy, AfterViewInit { /** * Provides event notifications that fire when local participant is created and connected to the Room. - * It provides the {@link ParticipantModel} payload as event data. + * @deprecated Use `onParticipantConnected` instead */ @Output() onParticipantCreated: EventEmitter = new EventEmitter(); + /** + * Provides event notifications that fire when local participant is connected to the Room. + * It provides the {@link ParticipantModel} payload as event data. + */ + @Output() onParticipantConnected: EventEmitter = new EventEmitter(); + /** * @internal */