@@ -89,6 +89,7 @@ class User(AsyncIOEventEmitter, metaclass=ABCMeta):
89
89
_logger : logging .Logger
90
90
_muted_video : bool
91
91
_muted_audio : bool
92
+ _local_stream : bool
92
93
_connection : ConnectionInterface | None
93
94
_handlers : dict [str , list [Callable [[Any ], Coroutine [Any , Any , MessageDict | None ]]]]
94
95
_ping_buffer : deque # buffer of n last ping times
@@ -99,7 +100,7 @@ class User(AsyncIOEventEmitter, metaclass=ABCMeta):
99
100
__lock : asyncio .Lock
100
101
101
102
def __init__ (
102
- self , user_id : str , muted_video : bool = False , muted_audio : bool = False
103
+ self , user_id : str , muted_video : bool = False , muted_audio : bool = False , local_stream : bool = False
103
104
) -> None :
104
105
"""Instantiate new User base class.
105
106
@@ -120,6 +121,7 @@ def __init__(
120
121
self ._experiment = None
121
122
self ._muted_video = muted_video
122
123
self ._muted_audio = muted_audio
124
+ self ._local_stream = local_stream
123
125
self ._handlers = {}
124
126
self ._ping_buffer = deque (maxlen = 100 )
125
127
self ._pinging = False
@@ -140,6 +142,11 @@ def muted_audio(self) -> bool:
140
142
"""bool indicating if the users audio is muted."""
141
143
return self ._muted_audio
142
144
145
+ @property
146
+ def local_stream (self ) -> bool :
147
+ """bool indicating if the users video is using local stream."""
148
+ return self ._local_stream
149
+
143
150
@property
144
151
def recorded (self ) -> bool :
145
152
"""bool indicating if the users video is recorded."""
0 commit comments