Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion livekit-rtc/livekit/rtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@

from ._proto import stats_pb2 as stats
from ._proto.e2ee_pb2 import EncryptionState, EncryptionType, KeyDerivationFunction
from ._proto.participant_pb2 import ParticipantKind, ParticipantState, DisconnectReason
from ._proto.participant_pb2 import (
ParticipantKind,
ParticipantKindDetail,
ParticipantState,
DisconnectReason,
)
from ._proto.room_pb2 import (
ConnectionQuality,
ConnectionState,
Expand Down Expand Up @@ -146,6 +151,7 @@
"LocalParticipant",
"Participant",
"ParticipantKind",
"ParticipantKindDetail",
"ParticipantState",
"DisconnectReason",
"RemoteParticipant",
Expand Down
5 changes: 5 additions & 0 deletions livekit-rtc/livekit/rtc/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ def kind(self) -> proto_participant.ParticipantKind.ValueType:
"""Participant's kind (e.g., regular participant, ingress, egress, sip, agent)."""
return self._info.kind

@property
def kind_details(self) -> list[proto_participant.ParticipantKindDetail.ValueType]:
"""Additional details refining the participant's kind (e.g., cloud agent, forwarded, whatsapp/twilio connector, rtsp bridge)."""
return list(self._info.kind_details)

@property
def state(self) -> proto_participant.ParticipantState.ValueType:
"""Participant's connection state (joining, joined, active, disconnected)."""
Expand Down
Loading