Skip to content

Commit 5a9a6a4

Browse files
authored
make track_publications a property in Participant (#285)
1 parent 00d3ffa commit 5a9a6a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

livekit-rtc/livekit/rtc/participant.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ class Participant:
6565
def __init__(self, owned_info: proto_participant.OwnedParticipant) -> None:
6666
self._info = owned_info.info
6767
self._ffi_handle = FfiHandle(owned_info.handle.id)
68-
self.track_publications: dict[str, TrackPublication] = {}
68+
self._track_publications: dict[str, TrackPublication] = {}
69+
70+
@property
71+
def track_publications(self) -> dict[str, TrackPublication]:
72+
"""
73+
A dictionary of track publications associated with the participant.
74+
"""
75+
return self._track_publications
6976

7077
@property
7178
def sid(self) -> str:

0 commit comments

Comments
 (0)