livekit 0.13.1.dev0__tar.gz → 0.14.0__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.
Files changed (51) hide show
  1. {livekit-0.13.1.dev0 → livekit-0.14.0}/PKG-INFO +1 -1
  2. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/room.py +1 -0
  3. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/track_publication.py +5 -0
  4. livekit-0.14.0/livekit/rtc/version.py +1 -0
  5. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit.egg-info/PKG-INFO +1 -1
  6. livekit-0.13.1.dev0/livekit/rtc/version.py +0 -1
  7. {livekit-0.13.1.dev0 → livekit-0.14.0}/README.md +0 -0
  8. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/__init__.py +0 -0
  9. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_event_emitter.py +0 -0
  10. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_ffi_client.py +0 -0
  11. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/__init__.py +0 -0
  12. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/audio_frame_pb2.py +0 -0
  13. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/audio_frame_pb2.pyi +0 -0
  14. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/e2ee_pb2.py +0 -0
  15. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/e2ee_pb2.pyi +0 -0
  16. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/ffi_pb2.py +0 -0
  17. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/ffi_pb2.pyi +0 -0
  18. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/handle_pb2.py +0 -0
  19. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/handle_pb2.pyi +0 -0
  20. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/participant_pb2.py +0 -0
  21. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/participant_pb2.pyi +0 -0
  22. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/room_pb2.py +0 -0
  23. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/room_pb2.pyi +0 -0
  24. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/stats_pb2.py +0 -0
  25. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/stats_pb2.pyi +0 -0
  26. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/track_pb2.py +0 -0
  27. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/track_pb2.pyi +0 -0
  28. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/video_frame_pb2.py +0 -0
  29. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_proto/video_frame_pb2.pyi +0 -0
  30. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/_utils.py +0 -0
  31. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/audio_frame.py +0 -0
  32. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/audio_source.py +0 -0
  33. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/audio_stream.py +0 -0
  34. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/chat.py +0 -0
  35. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/e2ee.py +0 -0
  36. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/participant.py +0 -0
  37. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/py.typed +0 -0
  38. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/resources/__init__.py +0 -0
  39. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/track.py +0 -0
  40. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/transcription.py +0 -0
  41. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/video_frame.py +0 -0
  42. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/video_source.py +0 -0
  43. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit/rtc/video_stream.py +0 -0
  44. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit.egg-info/SOURCES.txt +0 -0
  45. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit.egg-info/dependency_links.txt +0 -0
  46. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit.egg-info/requires.txt +0 -0
  47. {livekit-0.13.1.dev0 → livekit-0.14.0}/livekit.egg-info/top_level.txt +0 -0
  48. {livekit-0.13.1.dev0 → livekit-0.14.0}/pyproject.toml +0 -0
  49. {livekit-0.13.1.dev0 → livekit-0.14.0}/setup.cfg +0 -0
  50. {livekit-0.13.1.dev0 → livekit-0.14.0}/setup.py +0 -0
  51. {livekit-0.13.1.dev0 → livekit-0.14.0}/tests/test_chat.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit
3
- Version: 0.13.1.dev0
3
+ Version: 0.14.0
4
4
  Summary: Python Real-time SDK for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -288,6 +288,7 @@ class Room(EventEmitter[EventTypes]):
288
288
  elif which == "local_track_subscribed":
289
289
  sid = event.local_track_subscribed.track_sid
290
290
  lpublication = self.local_participant.track_publications[sid]
291
+ lpublication._first_subscription.set_result(None)
291
292
  self.emit("local_track_subscribed", lpublication.track)
292
293
  elif which == "track_published":
293
294
  rparticipant = self.remote_participants[
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from typing import Optional
16
+ import asyncio
16
17
 
17
18
  from ._ffi_client import FfiHandle, FfiClient
18
19
  from ._proto import e2ee_pb2 as proto_e2ee
@@ -71,6 +72,10 @@ class TrackPublication:
71
72
  class LocalTrackPublication(TrackPublication):
72
73
  def __init__(self, owned_info: proto_track.OwnedTrackPublication):
73
74
  super().__init__(owned_info)
75
+ self._first_subscription: asyncio.Future[None] = asyncio.Future()
76
+
77
+ async def wait_for_subscription(self) -> None:
78
+ await asyncio.shield(self._first_subscription)
74
79
 
75
80
 
76
81
  class RemoteTrackPublication(TrackPublication):
@@ -0,0 +1 @@
1
+ __version__ = "0.14.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit
3
- Version: 0.13.1.dev0
3
+ Version: 0.14.0
4
4
  Summary: Python Real-time SDK for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -1 +0,0 @@
1
- __version__ = "0.13.1.dev0"
File without changes
File without changes
File without changes
File without changes