mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: print string reasons
parent
01530fef32
commit
8c18243c88
|
@ -261,7 +261,7 @@ export class OpenviduInstanceComponent {
|
|||
this.room?.removeAllListeners(RoomEvent.Disconnected);
|
||||
if (this.roomEvents.get(RoomEvent.Disconnected)) {
|
||||
this.room!.on(RoomEvent.Disconnected, (reason?: DisconnectReason) => {
|
||||
this.updateEventList(RoomEvent.Disconnected, {}, `Reason: ${reason}`);
|
||||
this.updateEventList(RoomEvent.Disconnected, {}, `Reason: ${reason ? DisconnectReason[reason] : reason}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ export class OpenviduInstanceComponent {
|
|||
this.updateEventList(
|
||||
RoomEvent.TrackSubscriptionFailed,
|
||||
{ trackSid, participant },
|
||||
`${participant.identity} (${trackSid}). Reason: ${reason}`
|
||||
`${participant.identity} (${trackSid}). Reason: ${reason ? SubscriptionError[reason] : reason}`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
|
@ -229,7 +229,9 @@ export class ParticipantComponent {
|
|||
ParticipantEvent.TrackSubscriptionFailed,
|
||||
'ParticipantEvent',
|
||||
{ trackSid, reason },
|
||||
trackSid + ' . Reason: ' + reason
|
||||
trackSid +
|
||||
' . Reason: ' +
|
||||
(reason ? SubscriptionError[reason] : reason)
|
||||
);
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue