livekit 0.12.0.dev0__tar.gz → 0.12.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {livekit-0.12.0.dev0 → livekit-0.12.1}/PKG-INFO +1 -1
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/audio_stream.py +4 -4
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/participant.py +3 -4
- livekit-0.12.1/livekit/rtc/version.py +1 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/video_stream.py +4 -4
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit.egg-info/PKG-INFO +1 -1
- livekit-0.12.0.dev0/livekit/rtc/version.py +0 -1
- {livekit-0.12.0.dev0 → livekit-0.12.1}/README.md +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/__init__.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_event_emitter.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_ffi_client.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/__init__.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/audio_frame_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/audio_frame_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/e2ee_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/e2ee_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/ffi_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/ffi_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/handle_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/handle_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/participant_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/participant_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/room_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/room_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/stats_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/stats_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/track_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/track_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/video_frame_pb2.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_proto/video_frame_pb2.pyi +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/_utils.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/audio_frame.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/audio_source.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/chat.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/e2ee.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/py.typed +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/resources/__init__.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/room.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/track.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/track_publication.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/transcription.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/video_frame.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit/rtc/video_source.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit.egg-info/SOURCES.txt +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit.egg-info/dependency_links.txt +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit.egg-info/requires.txt +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/livekit.egg-info/top_level.txt +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/pyproject.toml +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/setup.cfg +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/setup.py +0 -0
- {livekit-0.12.0.dev0 → livekit-0.12.1}/tests/test_chat.py +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
import asyncio
|
|
16
|
-
from typing import Optional
|
|
16
|
+
from typing import Optional, AsyncIterator
|
|
17
17
|
|
|
18
18
|
from ._ffi_client import FfiHandle, FfiClient
|
|
19
19
|
from ._proto import audio_frame_pb2 as proto_audio_frame
|
|
@@ -78,12 +78,12 @@ class AudioStream:
|
|
|
78
78
|
self._ffi_handle.dispose()
|
|
79
79
|
await self._task
|
|
80
80
|
|
|
81
|
-
def __aiter__(self) -> "AudioStream":
|
|
82
|
-
return self
|
|
83
|
-
|
|
84
81
|
def _is_event(self, e: proto_ffi.FfiEvent) -> bool:
|
|
85
82
|
return e.audio_stream_event.stream_handle == self._ffi_handle.handle
|
|
86
83
|
|
|
84
|
+
def __aiter__(self) -> AsyncIterator[AudioFrameEvent]:
|
|
85
|
+
return self
|
|
86
|
+
|
|
87
87
|
async def __anext__(self) -> AudioFrameEvent:
|
|
88
88
|
if self._task.done():
|
|
89
89
|
raise StopAsyncIteration
|
|
@@ -168,8 +168,8 @@ class LocalParticipant(Participant):
|
|
|
168
168
|
try:
|
|
169
169
|
resp = FfiClient.instance.request(req)
|
|
170
170
|
await queue.wait_for(
|
|
171
|
-
lambda e: e.
|
|
172
|
-
== resp.
|
|
171
|
+
lambda e: e.set_local_metadata.async_id
|
|
172
|
+
== resp.set_local_metadata.async_id
|
|
173
173
|
)
|
|
174
174
|
finally:
|
|
175
175
|
FfiClient.instance.queue.unsubscribe(queue)
|
|
@@ -183,8 +183,7 @@ class LocalParticipant(Participant):
|
|
|
183
183
|
try:
|
|
184
184
|
resp = FfiClient.instance.request(req)
|
|
185
185
|
await queue.wait_for(
|
|
186
|
-
lambda e: e.
|
|
187
|
-
== resp.update_local_name.async_id
|
|
186
|
+
lambda e: e.set_local_name.async_id == resp.set_local_name.async_id
|
|
188
187
|
)
|
|
189
188
|
finally:
|
|
190
189
|
FfiClient.instance.queue.unsubscribe(queue)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.12.1"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import asyncio
|
|
16
16
|
from dataclasses import dataclass
|
|
17
|
-
from typing import Optional
|
|
17
|
+
from typing import Optional, AsyncIterator
|
|
18
18
|
|
|
19
19
|
from ._ffi_client import FfiHandle, FfiClient
|
|
20
20
|
from ._proto import ffi_pb2 as proto_ffi
|
|
@@ -91,12 +91,12 @@ class VideoStream:
|
|
|
91
91
|
self._ffi_handle.dispose()
|
|
92
92
|
await self._task
|
|
93
93
|
|
|
94
|
-
def __aiter__(self) -> "VideoStream":
|
|
95
|
-
return self
|
|
96
|
-
|
|
97
94
|
def _is_event(self, e: proto_ffi.FfiEvent) -> bool:
|
|
98
95
|
return e.video_stream_event.stream_handle == self._ffi_handle.handle
|
|
99
96
|
|
|
97
|
+
def __aiter__(self) -> AsyncIterator[VideoFrameEvent]:
|
|
98
|
+
return self
|
|
99
|
+
|
|
100
100
|
async def __anext__(self) -> VideoFrameEvent:
|
|
101
101
|
if self._task.done():
|
|
102
102
|
raise StopAsyncIteration
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.12.0.dev0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|