IParticipant - Unity
IParticipant
The IParticipant
interface represents a participant in a VideoSDK meeting. It allows you to query participant details such as their Id, display name, and whether they are the local user.
Id
The Id
property returns the unique identifier assigned to the participant in the meeting.
Type
string
Example
string id = iParticipant.Id;
Debug.Log("Participant ID: " + id);
Name
The Name
property returns the display name of the participant in the meeting. This is the name provided when the participant joined the meeting.
Type
string
Example
string displayName = iParticipant.Name;
Debug.Log("Participant Name: " + displayName);
IsLocal
The IsLocal
property indicates whether the participant represented by this instance is the local participant
.
Type
bool
Example
if (iParticipant.IsLocal)
{
Debug.Log("This is the local participant.");
}
else
{
Debug.Log("This is a remote participant.");
}
Got a Question? Ask us on discord