openvidu-components: Updated tutorials

This commit is contained in:
Carlos Santos 2024-06-18 10:37:18 +02:00
parent d2ce73129f
commit 8dc320313a
2 changed files with 4 additions and 4 deletions

View File

@ -131,12 +131,12 @@ export class AppComponent implements OnInit, OnDestroy {
// Subscribe to updates for local and remote participants
subscribeToParticipants() {
this.localParticipantSubs =
this.participantService.localParticipantObs.subscribe((p) => {
this.participantService.localParticipant$.subscribe((p) => {
if (p) this.localParticipant = p;
});
this.remoteParticipantsSubs =
this.participantService.remoteParticipantsObs.subscribe(
this.participantService.remoteParticipants$.subscribe(
(participants) => {
this.remoteParticipants = participants;
}

View File

@ -110,12 +110,12 @@ export class AppComponent implements OnInit, OnDestroy {
// Subscribes to updates for local and remote participants.
subscribeToParticipants() {
this.localParticipantSubs =
this.participantService.localParticipantObs.subscribe((p) => {
this.participantService.localParticipant$.subscribe((p) => {
if (p) this.localParticipant = p;
});
this.remoteParticipantsSubs =
this.participantService.remoteParticipantsObs.subscribe(
this.participantService.remoteParticipants$.subscribe(
(participants) => {
this.remoteParticipants = participants;
}