mirror of https://github.com/OpenVidu/openvidu.git
ov-components: Add getter for room name in ParticipantModel
parent
cabb761024
commit
3be9dd6741
|
|
@ -175,6 +175,15 @@ export class ParticipantModel {
|
|||
return this._decryptedName ?? this.participant.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the room name where the participant is.
|
||||
* @return string | undefined
|
||||
* @internal
|
||||
*/
|
||||
get roomName(): string | undefined {
|
||||
return this.room?.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the participant has enabled its camera.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue