mirror of https://github.com/OpenVidu/openvidu.git
ov-components: update onRoomDisconnected event to reference onParticipantLeft for deprecation notice
parent
d3702ab6ac
commit
34eb27dfe3
|
@ -82,7 +82,7 @@ export class SessionComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides event notifications that fire when participant is disconnected from Room.
|
* Provides event notifications that fire when participant is disconnected from Room.
|
||||||
* @deprecated Use onParticipantLeft instead
|
* @deprecated Use {@link onParticipantLeft} instead.
|
||||||
*/
|
*/
|
||||||
@Output() onRoomDisconnected: EventEmitter<void> = new EventEmitter<void>();
|
@Output() onRoomDisconnected: EventEmitter<void> = new EventEmitter<void>();
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,12 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This event is emitted when the room has been disconnected.
|
||||||
|
* @deprecated Use {@link onParticipantLeft} instead.
|
||||||
|
*/
|
||||||
|
@Output() onRoomDisconnected: EventEmitter<void> = new EventEmitter<void>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This event is emitted when the local participant leaves the room.
|
* This event is emitted when the local participant leaves the room.
|
||||||
*/
|
*/
|
||||||
|
@ -524,6 +530,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
participantName: this.participantService.getLocalParticipant()?.identity || '',
|
participantName: this.participantService.getLocalParticipant()?.identity || '',
|
||||||
reason: ParticipantLeftReason.LEAVE
|
reason: ParticipantLeftReason.LEAVE
|
||||||
});
|
});
|
||||||
|
this.onRoomDisconnected.emit();
|
||||||
}, false);
|
}, false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.log.e('There was an error disconnecting:', error.code, error.message);
|
this.log.e('There was an error disconnecting:', error.code, error.message);
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
<ov-toolbar
|
<ov-toolbar
|
||||||
id="default-toolbar"
|
id="default-toolbar"
|
||||||
(onParticipantLeft)="_onParticipantLeft($event)"
|
(onParticipantLeft)="_onParticipantLeft($event)"
|
||||||
|
(onRoomDisconnected)="onRoomDisconnected.emit()"
|
||||||
(onVideoEnabledChanged)="onVideoEnabledChanged.emit($event)"
|
(onVideoEnabledChanged)="onVideoEnabledChanged.emit($event)"
|
||||||
(onAudioEnabledChanged)="onAudioEnabledChanged.emit($event)"
|
(onAudioEnabledChanged)="onAudioEnabledChanged.emit($event)"
|
||||||
(onScreenShareEnabledChanged)="onScreenShareEnabledChanged.emit($event)"
|
(onScreenShareEnabledChanged)="onScreenShareEnabledChanged.emit($event)"
|
||||||
|
|
|
@ -213,6 +213,7 @@ export class VideoconferenceComponent implements OnDestroy, AfterViewInit {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides event notifications that fire when Room is disconnected for the local participant.
|
* Provides event notifications that fire when Room is disconnected for the local participant.
|
||||||
|
* @deprecated Use {@link onParticipantLeft} instead
|
||||||
*/
|
*/
|
||||||
@Output() onRoomDisconnected: EventEmitter<void> = new EventEmitter<void>();
|
@Output() onRoomDisconnected: EventEmitter<void> = new EventEmitter<void>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue