livekit 0.6.0__tar.gz → 0.7.0.dev0__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 (47) hide show
  1. {livekit-0.6.0 → livekit-0.7.0.dev0}/PKG-INFO +1 -1
  2. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_ffi_client.py +34 -0
  3. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/ffi_pb2.py +18 -12
  4. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/ffi_pb2.pyi +92 -5
  5. livekit-0.7.0.dev0/livekit/rtc/_proto/room_pb2.py +158 -0
  6. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/room_pb2.pyi +4 -1
  7. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/participant.py +14 -18
  8. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/room.py +7 -1
  9. livekit-0.7.0.dev0/livekit/rtc/version.py +1 -0
  10. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/video_frame.py +8 -8
  11. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit.egg-info/PKG-INFO +1 -1
  12. livekit-0.6.0/livekit/rtc/_proto/room_pb2.py +0 -158
  13. livekit-0.6.0/livekit/rtc/version.py +0 -1
  14. {livekit-0.6.0 → livekit-0.7.0.dev0}/README.md +0 -0
  15. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/__init__.py +0 -0
  16. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_event_emitter.py +0 -0
  17. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/__init__.py +0 -0
  18. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/audio_frame_pb2.py +0 -0
  19. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/audio_frame_pb2.pyi +0 -0
  20. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/e2ee_pb2.py +0 -0
  21. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/e2ee_pb2.pyi +0 -0
  22. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/handle_pb2.py +0 -0
  23. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/handle_pb2.pyi +0 -0
  24. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/participant_pb2.py +0 -0
  25. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/participant_pb2.pyi +0 -0
  26. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/stats_pb2.py +0 -0
  27. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/stats_pb2.pyi +0 -0
  28. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/track_pb2.py +0 -0
  29. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/track_pb2.pyi +0 -0
  30. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/video_frame_pb2.py +0 -0
  31. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_proto/video_frame_pb2.pyi +0 -0
  32. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/_utils.py +0 -0
  33. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/audio_frame.py +0 -0
  34. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/audio_source.py +0 -0
  35. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/audio_stream.py +0 -0
  36. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/e2ee.py +0 -0
  37. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/track.py +0 -0
  38. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/track_publication.py +0 -0
  39. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/video_source.py +0 -0
  40. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit/rtc/video_stream.py +0 -0
  41. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit.egg-info/SOURCES.txt +0 -0
  42. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit.egg-info/dependency_links.txt +0 -0
  43. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit.egg-info/requires.txt +0 -0
  44. {livekit-0.6.0 → livekit-0.7.0.dev0}/livekit.egg-info/top_level.txt +0 -0
  45. {livekit-0.6.0 → livekit-0.7.0.dev0}/pyproject.toml +0 -0
  46. {livekit-0.6.0 → livekit-0.7.0.dev0}/setup.cfg +0 -0
  47. {livekit-0.6.0 → livekit-0.7.0.dev0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit
3
- Version: 0.6.0
3
+ Version: 0.7.0.dev0
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
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import asyncio
16
+ import logging
16
17
  import ctypes
17
18
  import os
18
19
  import platform
@@ -24,6 +25,8 @@ import pkg_resources
24
25
  from ._proto import ffi_pb2 as proto_ffi
25
26
  from ._utils import Queue
26
27
 
28
+ logger = logging.getLogger("livekit")
29
+
27
30
 
28
31
  def get_ffi_lib_path():
29
32
  # allow to override the lib path using an env var
@@ -121,9 +124,39 @@ def ffi_event_callback(
121
124
  event_data = bytes(data_ptr[: int(data_len)])
122
125
  event = proto_ffi.FfiEvent()
123
126
  event.ParseFromString(event_data)
127
+
128
+ which = event.WhichOneof("message")
129
+ if which == "logs":
130
+ for record in event.logs.records:
131
+ logger.log(
132
+ to_python_level(record.level),
133
+ "%s:%s:%s - %s",
134
+ record.target,
135
+ record.line,
136
+ record.module_path,
137
+ record.message,
138
+ )
139
+
140
+ return # no need to queue the logs
141
+
124
142
  ffi_client.queue.put(event)
125
143
 
126
144
 
145
+ def to_python_level(level: proto_ffi.LogLevel.ValueType) -> int:
146
+ if level == proto_ffi.LogLevel.LOG_ERROR:
147
+ return logging.ERROR
148
+ elif level == proto_ffi.LogLevel.LOG_WARN:
149
+ return logging.WARN
150
+ elif level == proto_ffi.LogLevel.LOG_INFO:
151
+ return logging.INFO
152
+ elif level == proto_ffi.LogLevel.LOG_DEBUG:
153
+ return logging.DEBUG
154
+ elif level == proto_ffi.LogLevel.LOG_TRACE:
155
+ return logging.DEBUG
156
+
157
+ raise Exception("unreachable")
158
+
159
+
127
160
  class FfiClient:
128
161
  def __init__(self) -> None:
129
162
  self._lock = threading.RLock()
@@ -133,6 +166,7 @@ class FfiClient:
133
166
  req = proto_ffi.FfiRequest()
134
167
  cb_callback = int(ctypes.cast(ffi_event_callback, ctypes.c_void_p).value) # type: ignore
135
168
  req.initialize.event_callback_ptr = cb_callback
169
+ req.initialize.capture_logs = True # capture logs on Python
136
170
  self.request(req)
137
171
 
138
172
  @property
@@ -18,7 +18,7 @@ from . import video_frame_pb2 as video__frame__pb2
18
18
  from . import audio_frame_pb2 as audio__frame__pb2
19
19
 
20
20
 
21
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tffi.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0btrack.proto\x1a\nroom.proto\x1a\x11video_frame.proto\x1a\x11\x61udio_frame.proto\"\xf4\x0c\n\nFfiRequest\x12\x36\n\ninitialize\x18\x01 \x01(\x0b\x32 .livekit.proto.InitializeRequestH\x00\x12\x30\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.DisposeRequestH\x00\x12\x30\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.ConnectRequestH\x00\x12\x36\n\ndisconnect\x18\x04 \x01(\x0b\x32 .livekit.proto.DisconnectRequestH\x00\x12;\n\rpublish_track\x18\x05 \x01(\x0b\x32\".livekit.proto.PublishTrackRequestH\x00\x12?\n\x0funpublish_track\x18\x06 \x01(\x0b\x32$.livekit.proto.UnpublishTrackRequestH\x00\x12\x39\n\x0cpublish_data\x18\x07 \x01(\x0b\x32!.livekit.proto.PublishDataRequestH\x00\x12=\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32#.livekit.proto.SetSubscribedRequestH\x00\x12J\n\x15update_local_metadata\x18\t \x01(\x0b\x32).livekit.proto.UpdateLocalMetadataRequestH\x00\x12\x42\n\x11update_local_name\x18\n \x01(\x0b\x32%.livekit.proto.UpdateLocalNameRequestH\x00\x12\x44\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32&.livekit.proto.CreateVideoTrackRequestH\x00\x12\x44\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32&.livekit.proto.CreateAudioTrackRequestH\x00\x12\x33\n\tget_stats\x18\r \x01(\x0b\x32\x1e.livekit.proto.GetStatsRequestH\x00\x12\x44\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32&.livekit.proto.AllocVideoBufferRequestH\x00\x12@\n\x10new_video_stream\x18\x0f \x01(\x0b\x32$.livekit.proto.NewVideoStreamRequestH\x00\x12@\n\x10new_video_source\x18\x10 \x01(\x0b\x32$.livekit.proto.NewVideoSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32\'.livekit.proto.CaptureVideoFrameRequestH\x00\x12/\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1c.livekit.proto.ToI420RequestH\x00\x12/\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1c.livekit.proto.ToArgbRequestH\x00\x12\x44\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32&.livekit.proto.AllocAudioBufferRequestH\x00\x12@\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32$.livekit.proto.NewAudioStreamRequestH\x00\x12@\n\x10new_audio_source\x18\x16 \x01(\x0b\x32$.livekit.proto.NewAudioSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32\'.livekit.proto.CaptureAudioFrameRequestH\x00\x12\x46\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32\'.livekit.proto.NewAudioResamplerRequestH\x00\x12\x44\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32&.livekit.proto.RemixAndResampleRequestH\x00\x12*\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1a.livekit.proto.E2eeRequestH\x00\x42\t\n\x07message\"\x8f\r\n\x0b\x46\x66iResponse\x12\x37\n\ninitialize\x18\x01 \x01(\x0b\x32!.livekit.proto.InitializeResponseH\x00\x12\x31\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.DisposeResponseH\x00\x12\x31\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1e.livekit.proto.ConnectResponseH\x00\x12\x37\n\ndisconnect\x18\x04 \x01(\x0b\x32!.livekit.proto.DisconnectResponseH\x00\x12<\n\rpublish_track\x18\x05 \x01(\x0b\x32#.livekit.proto.PublishTrackResponseH\x00\x12@\n\x0funpublish_track\x18\x06 \x01(\x0b\x32%.livekit.proto.UnpublishTrackResponseH\x00\x12:\n\x0cpublish_data\x18\x07 \x01(\x0b\x32\".livekit.proto.PublishDataResponseH\x00\x12>\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32$.livekit.proto.SetSubscribedResponseH\x00\x12K\n\x15update_local_metadata\x18\t \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataResponseH\x00\x12\x43\n\x11update_local_name\x18\n \x01(\x0b\x32&.livekit.proto.UpdateLocalNameResponseH\x00\x12\x45\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32\'.livekit.proto.CreateVideoTrackResponseH\x00\x12\x45\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32\'.livekit.proto.CreateAudioTrackResponseH\x00\x12\x34\n\tget_stats\x18\r \x01(\x0b\x32\x1f.livekit.proto.GetStatsResponseH\x00\x12\x45\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32\'.livekit.proto.AllocVideoBufferResponseH\x00\x12\x41\n\x10new_video_stream\x18\x0f \x01(\x0b\x32%.livekit.proto.NewVideoStreamResponseH\x00\x12\x41\n\x10new_video_source\x18\x10 \x01(\x0b\x32%.livekit.proto.NewVideoSourceResponseH\x00\x12G\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32(.livekit.proto.CaptureVideoFrameResponseH\x00\x12\x30\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1d.livekit.proto.ToI420ResponseH\x00\x12\x30\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1d.livekit.proto.ToArgbResponseH\x00\x12\x45\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32\'.livekit.proto.AllocAudioBufferResponseH\x00\x12\x41\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32%.livekit.proto.NewAudioStreamResponseH\x00\x12\x41\n\x10new_audio_source\x18\x16 \x01(\x0b\x32%.livekit.proto.NewAudioSourceResponseH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameResponseH\x00\x12G\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32(.livekit.proto.NewAudioResamplerResponseH\x00\x12\x45\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32\'.livekit.proto.RemixAndResampleResponseH\x00\x12+\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1b.livekit.proto.E2eeResponseH\x00\x42\t\n\x07message\"\xe1\x06\n\x08\x46\x66iEvent\x12.\n\nroom_event\x18\x01 \x01(\x0b\x32\x18.livekit.proto.RoomEventH\x00\x12\x30\n\x0btrack_event\x18\x02 \x01(\x0b\x32\x19.livekit.proto.TrackEventH\x00\x12=\n\x12video_stream_event\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.VideoStreamEventH\x00\x12=\n\x12\x61udio_stream_event\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.AudioStreamEventH\x00\x12\x31\n\x07\x63onnect\x18\x05 \x01(\x0b\x32\x1e.livekit.proto.ConnectCallbackH\x00\x12\x37\n\ndisconnect\x18\x06 \x01(\x0b\x32!.livekit.proto.DisconnectCallbackH\x00\x12\x31\n\x07\x64ispose\x18\x07 \x01(\x0b\x32\x1e.livekit.proto.DisposeCallbackH\x00\x12<\n\rpublish_track\x18\x08 \x01(\x0b\x32#.livekit.proto.PublishTrackCallbackH\x00\x12@\n\x0funpublish_track\x18\t \x01(\x0b\x32%.livekit.proto.UnpublishTrackCallbackH\x00\x12:\n\x0cpublish_data\x18\n \x01(\x0b\x32\".livekit.proto.PublishDataCallbackH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x0b \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameCallbackH\x00\x12K\n\x15update_local_metadata\x18\x0c \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataCallbackH\x00\x12\x43\n\x11update_local_name\x18\r \x01(\x0b\x32&.livekit.proto.UpdateLocalNameCallbackH\x00\x12\x34\n\tget_stats\x18\x0e \x01(\x0b\x32\x1f.livekit.proto.GetStatsCallbackH\x00\x42\t\n\x07message\"/\n\x11InitializeRequest\x12\x1a\n\x12\x65vent_callback_ptr\x18\x01 \x01(\x04\"\x14\n\x12InitializeResponse\"\x1f\n\x0e\x44isposeRequest\x12\r\n\x05\x61sync\x18\x01 \x01(\x08\"5\n\x0f\x44isposeResponse\x12\x15\n\x08\x61sync_id\x18\x01 \x01(\x04H\x00\x88\x01\x01\x42\x0b\n\t_async_id\"#\n\x0f\x44isposeCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3')
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tffi.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0btrack.proto\x1a\nroom.proto\x1a\x11video_frame.proto\x1a\x11\x61udio_frame.proto\"\xf4\x0c\n\nFfiRequest\x12\x36\n\ninitialize\x18\x01 \x01(\x0b\x32 .livekit.proto.InitializeRequestH\x00\x12\x30\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.DisposeRequestH\x00\x12\x30\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.ConnectRequestH\x00\x12\x36\n\ndisconnect\x18\x04 \x01(\x0b\x32 .livekit.proto.DisconnectRequestH\x00\x12;\n\rpublish_track\x18\x05 \x01(\x0b\x32\".livekit.proto.PublishTrackRequestH\x00\x12?\n\x0funpublish_track\x18\x06 \x01(\x0b\x32$.livekit.proto.UnpublishTrackRequestH\x00\x12\x39\n\x0cpublish_data\x18\x07 \x01(\x0b\x32!.livekit.proto.PublishDataRequestH\x00\x12=\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32#.livekit.proto.SetSubscribedRequestH\x00\x12J\n\x15update_local_metadata\x18\t \x01(\x0b\x32).livekit.proto.UpdateLocalMetadataRequestH\x00\x12\x42\n\x11update_local_name\x18\n \x01(\x0b\x32%.livekit.proto.UpdateLocalNameRequestH\x00\x12\x44\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32&.livekit.proto.CreateVideoTrackRequestH\x00\x12\x44\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32&.livekit.proto.CreateAudioTrackRequestH\x00\x12\x33\n\tget_stats\x18\r \x01(\x0b\x32\x1e.livekit.proto.GetStatsRequestH\x00\x12\x44\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32&.livekit.proto.AllocVideoBufferRequestH\x00\x12@\n\x10new_video_stream\x18\x0f \x01(\x0b\x32$.livekit.proto.NewVideoStreamRequestH\x00\x12@\n\x10new_video_source\x18\x10 \x01(\x0b\x32$.livekit.proto.NewVideoSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32\'.livekit.proto.CaptureVideoFrameRequestH\x00\x12/\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1c.livekit.proto.ToI420RequestH\x00\x12/\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1c.livekit.proto.ToArgbRequestH\x00\x12\x44\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32&.livekit.proto.AllocAudioBufferRequestH\x00\x12@\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32$.livekit.proto.NewAudioStreamRequestH\x00\x12@\n\x10new_audio_source\x18\x16 \x01(\x0b\x32$.livekit.proto.NewAudioSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32\'.livekit.proto.CaptureAudioFrameRequestH\x00\x12\x46\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32\'.livekit.proto.NewAudioResamplerRequestH\x00\x12\x44\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32&.livekit.proto.RemixAndResampleRequestH\x00\x12*\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1a.livekit.proto.E2eeRequestH\x00\x42\t\n\x07message\"\x8f\r\n\x0b\x46\x66iResponse\x12\x37\n\ninitialize\x18\x01 \x01(\x0b\x32!.livekit.proto.InitializeResponseH\x00\x12\x31\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.DisposeResponseH\x00\x12\x31\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1e.livekit.proto.ConnectResponseH\x00\x12\x37\n\ndisconnect\x18\x04 \x01(\x0b\x32!.livekit.proto.DisconnectResponseH\x00\x12<\n\rpublish_track\x18\x05 \x01(\x0b\x32#.livekit.proto.PublishTrackResponseH\x00\x12@\n\x0funpublish_track\x18\x06 \x01(\x0b\x32%.livekit.proto.UnpublishTrackResponseH\x00\x12:\n\x0cpublish_data\x18\x07 \x01(\x0b\x32\".livekit.proto.PublishDataResponseH\x00\x12>\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32$.livekit.proto.SetSubscribedResponseH\x00\x12K\n\x15update_local_metadata\x18\t \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataResponseH\x00\x12\x43\n\x11update_local_name\x18\n \x01(\x0b\x32&.livekit.proto.UpdateLocalNameResponseH\x00\x12\x45\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32\'.livekit.proto.CreateVideoTrackResponseH\x00\x12\x45\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32\'.livekit.proto.CreateAudioTrackResponseH\x00\x12\x34\n\tget_stats\x18\r \x01(\x0b\x32\x1f.livekit.proto.GetStatsResponseH\x00\x12\x45\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32\'.livekit.proto.AllocVideoBufferResponseH\x00\x12\x41\n\x10new_video_stream\x18\x0f \x01(\x0b\x32%.livekit.proto.NewVideoStreamResponseH\x00\x12\x41\n\x10new_video_source\x18\x10 \x01(\x0b\x32%.livekit.proto.NewVideoSourceResponseH\x00\x12G\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32(.livekit.proto.CaptureVideoFrameResponseH\x00\x12\x30\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1d.livekit.proto.ToI420ResponseH\x00\x12\x30\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1d.livekit.proto.ToArgbResponseH\x00\x12\x45\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32\'.livekit.proto.AllocAudioBufferResponseH\x00\x12\x41\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32%.livekit.proto.NewAudioStreamResponseH\x00\x12\x41\n\x10new_audio_source\x18\x16 \x01(\x0b\x32%.livekit.proto.NewAudioSourceResponseH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameResponseH\x00\x12G\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32(.livekit.proto.NewAudioResamplerResponseH\x00\x12\x45\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32\'.livekit.proto.RemixAndResampleResponseH\x00\x12+\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1b.livekit.proto.E2eeResponseH\x00\x42\t\n\x07message\"\x8a\x07\n\x08\x46\x66iEvent\x12.\n\nroom_event\x18\x01 \x01(\x0b\x32\x18.livekit.proto.RoomEventH\x00\x12\x30\n\x0btrack_event\x18\x02 \x01(\x0b\x32\x19.livekit.proto.TrackEventH\x00\x12=\n\x12video_stream_event\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.VideoStreamEventH\x00\x12=\n\x12\x61udio_stream_event\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.AudioStreamEventH\x00\x12\x31\n\x07\x63onnect\x18\x05 \x01(\x0b\x32\x1e.livekit.proto.ConnectCallbackH\x00\x12\x37\n\ndisconnect\x18\x06 \x01(\x0b\x32!.livekit.proto.DisconnectCallbackH\x00\x12\x31\n\x07\x64ispose\x18\x07 \x01(\x0b\x32\x1e.livekit.proto.DisposeCallbackH\x00\x12<\n\rpublish_track\x18\x08 \x01(\x0b\x32#.livekit.proto.PublishTrackCallbackH\x00\x12@\n\x0funpublish_track\x18\t \x01(\x0b\x32%.livekit.proto.UnpublishTrackCallbackH\x00\x12:\n\x0cpublish_data\x18\n \x01(\x0b\x32\".livekit.proto.PublishDataCallbackH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x0b \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameCallbackH\x00\x12K\n\x15update_local_metadata\x18\x0c \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataCallbackH\x00\x12\x43\n\x11update_local_name\x18\r \x01(\x0b\x32&.livekit.proto.UpdateLocalNameCallbackH\x00\x12\x34\n\tget_stats\x18\x0e \x01(\x0b\x32\x1f.livekit.proto.GetStatsCallbackH\x00\x12\'\n\x04logs\x18\x0f \x01(\x0b\x32\x17.livekit.proto.LogBatchH\x00\x42\t\n\x07message\"E\n\x11InitializeRequest\x12\x1a\n\x12\x65vent_callback_ptr\x18\x01 \x01(\x04\x12\x14\n\x0c\x63\x61pture_logs\x18\x02 \x01(\x08\"\x14\n\x12InitializeResponse\"\x1f\n\x0e\x44isposeRequest\x12\r\n\x05\x61sync\x18\x01 \x01(\x08\"5\n\x0f\x44isposeResponse\x12\x15\n\x08\x61sync_id\x18\x01 \x01(\x04H\x00\x88\x01\x01\x42\x0b\n\t_async_id\"#\n\x0f\x44isposeCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\xb6\x01\n\tLogRecord\x12&\n\x05level\x18\x01 \x01(\x0e\x32\x17.livekit.proto.LogLevel\x12\x0e\n\x06target\x18\x02 \x01(\t\x12\x18\n\x0bmodule_path\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04\x66ile\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04line\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07message\x18\x06 \x01(\tB\x0e\n\x0c_module_pathB\x07\n\x05_fileB\x07\n\x05_line\"5\n\x08LogBatch\x12)\n\x07records\x18\x01 \x03(\x0b\x32\x18.livekit.proto.LogRecord*S\n\x08LogLevel\x12\r\n\tLOG_ERROR\x10\x00\x12\x0c\n\x08LOG_WARN\x10\x01\x12\x0c\n\x08LOG_INFO\x10\x02\x12\r\n\tLOG_DEBUG\x10\x03\x12\r\n\tLOG_TRACE\x10\x04\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3')
22
22
 
23
23
  _globals = globals()
24
24
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -27,20 +27,26 @@ if _descriptor._USE_C_DESCRIPTORS == False:
27
27
 
28
28
  DESCRIPTOR._options = None
29
29
  DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto'
30
+ _globals['_LOGLEVEL']._serialized_start=4807
31
+ _globals['_LOGLEVEL']._serialized_end=4890
30
32
  _globals['_FFIREQUEST']._serialized_start=104
31
33
  _globals['_FFIREQUEST']._serialized_end=1756
32
34
  _globals['_FFIRESPONSE']._serialized_start=1759
33
35
  _globals['_FFIRESPONSE']._serialized_end=3438
34
36
  _globals['_FFIEVENT']._serialized_start=3441
35
- _globals['_FFIEVENT']._serialized_end=4306
36
- _globals['_INITIALIZEREQUEST']._serialized_start=4308
37
- _globals['_INITIALIZEREQUEST']._serialized_end=4355
38
- _globals['_INITIALIZERESPONSE']._serialized_start=4357
39
- _globals['_INITIALIZERESPONSE']._serialized_end=4377
40
- _globals['_DISPOSEREQUEST']._serialized_start=4379
41
- _globals['_DISPOSEREQUEST']._serialized_end=4410
42
- _globals['_DISPOSERESPONSE']._serialized_start=4412
43
- _globals['_DISPOSERESPONSE']._serialized_end=4465
44
- _globals['_DISPOSECALLBACK']._serialized_start=4467
45
- _globals['_DISPOSECALLBACK']._serialized_end=4502
37
+ _globals['_FFIEVENT']._serialized_end=4347
38
+ _globals['_INITIALIZEREQUEST']._serialized_start=4349
39
+ _globals['_INITIALIZEREQUEST']._serialized_end=4418
40
+ _globals['_INITIALIZERESPONSE']._serialized_start=4420
41
+ _globals['_INITIALIZERESPONSE']._serialized_end=4440
42
+ _globals['_DISPOSEREQUEST']._serialized_start=4442
43
+ _globals['_DISPOSEREQUEST']._serialized_end=4473
44
+ _globals['_DISPOSERESPONSE']._serialized_start=4475
45
+ _globals['_DISPOSERESPONSE']._serialized_end=4528
46
+ _globals['_DISPOSECALLBACK']._serialized_start=4530
47
+ _globals['_DISPOSECALLBACK']._serialized_end=4565
48
+ _globals['_LOGRECORD']._serialized_start=4568
49
+ _globals['_LOGRECORD']._serialized_end=4750
50
+ _globals['_LOGBATCH']._serialized_start=4752
51
+ _globals['_LOGBATCH']._serialized_end=4805
46
52
  # @@protoc_insertion_point(module_scope)
@@ -17,21 +17,46 @@ limitations under the License.
17
17
  """
18
18
  from . import audio_frame_pb2
19
19
  import builtins
20
+ import collections.abc
20
21
  from . import e2ee_pb2
21
22
  import google.protobuf.descriptor
23
+ import google.protobuf.internal.containers
24
+ import google.protobuf.internal.enum_type_wrapper
22
25
  import google.protobuf.message
23
26
  from . import room_pb2
24
27
  import sys
25
28
  from . import track_pb2
29
+ import typing
26
30
  from . import video_frame_pb2
27
31
 
28
- if sys.version_info >= (3, 8):
32
+ if sys.version_info >= (3, 10):
29
33
  import typing as typing_extensions
30
34
  else:
31
35
  import typing_extensions
32
36
 
33
37
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
38
 
39
+ class _LogLevel:
40
+ ValueType = typing.NewType("ValueType", builtins.int)
41
+ V: typing_extensions.TypeAlias = ValueType
42
+
43
+ class _LogLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], builtins.type):
44
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
45
+ LOG_ERROR: _LogLevel.ValueType # 0
46
+ LOG_WARN: _LogLevel.ValueType # 1
47
+ LOG_INFO: _LogLevel.ValueType # 2
48
+ LOG_DEBUG: _LogLevel.ValueType # 3
49
+ LOG_TRACE: _LogLevel.ValueType # 4
50
+
51
+ class LogLevel(_LogLevel, metaclass=_LogLevelEnumTypeWrapper): ...
52
+
53
+ LOG_ERROR: LogLevel.ValueType # 0
54
+ LOG_WARN: LogLevel.ValueType # 1
55
+ LOG_INFO: LogLevel.ValueType # 2
56
+ LOG_DEBUG: LogLevel.ValueType # 3
57
+ LOG_TRACE: LogLevel.ValueType # 4
58
+ global___LogLevel = LogLevel
59
+
35
60
  @typing_extensions.final
36
61
  class FfiRequest(google.protobuf.message.Message):
37
62
  """**How is the livekit-ffi working:
@@ -331,6 +356,7 @@ class FfiEvent(google.protobuf.message.Message):
331
356
  UPDATE_LOCAL_METADATA_FIELD_NUMBER: builtins.int
332
357
  UPDATE_LOCAL_NAME_FIELD_NUMBER: builtins.int
333
358
  GET_STATS_FIELD_NUMBER: builtins.int
359
+ LOGS_FIELD_NUMBER: builtins.int
334
360
  @property
335
361
  def room_event(self) -> room_pb2.RoomEvent: ...
336
362
  @property
@@ -359,6 +385,8 @@ class FfiEvent(google.protobuf.message.Message):
359
385
  def update_local_name(self) -> room_pb2.UpdateLocalNameCallback: ...
360
386
  @property
361
387
  def get_stats(self) -> track_pb2.GetStatsCallback: ...
388
+ @property
389
+ def logs(self) -> global___LogBatch: ...
362
390
  def __init__(
363
391
  self,
364
392
  *,
@@ -376,10 +404,11 @@ class FfiEvent(google.protobuf.message.Message):
376
404
  update_local_metadata: room_pb2.UpdateLocalMetadataCallback | None = ...,
377
405
  update_local_name: room_pb2.UpdateLocalNameCallback | None = ...,
378
406
  get_stats: track_pb2.GetStatsCallback | None = ...,
407
+ logs: global___LogBatch | None = ...,
379
408
  ) -> None: ...
380
- def HasField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ...
381
- def ClearField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> None: ...
382
- def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "capture_audio_frame", "update_local_metadata", "update_local_name", "get_stats"] | None: ...
409
+ def HasField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ...
410
+ def ClearField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> None: ...
411
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "capture_audio_frame", "update_local_metadata", "update_local_name", "get_stats", "logs"] | None: ...
383
412
 
384
413
  global___FfiEvent = FfiEvent
385
414
 
@@ -392,13 +421,17 @@ class InitializeRequest(google.protobuf.message.Message):
392
421
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
393
422
 
394
423
  EVENT_CALLBACK_PTR_FIELD_NUMBER: builtins.int
424
+ CAPTURE_LOGS_FIELD_NUMBER: builtins.int
395
425
  event_callback_ptr: builtins.int
426
+ capture_logs: builtins.bool
427
+ """When true, the FfiServer will forward logs using LogRecord"""
396
428
  def __init__(
397
429
  self,
398
430
  *,
399
431
  event_callback_ptr: builtins.int = ...,
432
+ capture_logs: builtins.bool = ...,
400
433
  ) -> None: ...
401
- def ClearField(self, field_name: typing_extensions.Literal["event_callback_ptr", b"event_callback_ptr"]) -> None: ...
434
+ def ClearField(self, field_name: typing_extensions.Literal["capture_logs", b"capture_logs", "event_callback_ptr", b"event_callback_ptr"]) -> None: ...
402
435
 
403
436
  global___InitializeRequest = InitializeRequest
404
437
 
@@ -461,3 +494,57 @@ class DisposeCallback(google.protobuf.message.Message):
461
494
  def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ...
462
495
 
463
496
  global___DisposeCallback = DisposeCallback
497
+
498
+ @typing_extensions.final
499
+ class LogRecord(google.protobuf.message.Message):
500
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
501
+
502
+ LEVEL_FIELD_NUMBER: builtins.int
503
+ TARGET_FIELD_NUMBER: builtins.int
504
+ MODULE_PATH_FIELD_NUMBER: builtins.int
505
+ FILE_FIELD_NUMBER: builtins.int
506
+ LINE_FIELD_NUMBER: builtins.int
507
+ MESSAGE_FIELD_NUMBER: builtins.int
508
+ level: global___LogLevel.ValueType
509
+ target: builtins.str
510
+ """e.g "livekit", "libwebrtc", "tokio-tungstenite", etc..."""
511
+ module_path: builtins.str
512
+ file: builtins.str
513
+ line: builtins.int
514
+ message: builtins.str
515
+ def __init__(
516
+ self,
517
+ *,
518
+ level: global___LogLevel.ValueType = ...,
519
+ target: builtins.str = ...,
520
+ module_path: builtins.str | None = ...,
521
+ file: builtins.str | None = ...,
522
+ line: builtins.int | None = ...,
523
+ message: builtins.str = ...,
524
+ ) -> None: ...
525
+ def HasField(self, field_name: typing_extensions.Literal["_file", b"_file", "_line", b"_line", "_module_path", b"_module_path", "file", b"file", "line", b"line", "module_path", b"module_path"]) -> builtins.bool: ...
526
+ def ClearField(self, field_name: typing_extensions.Literal["_file", b"_file", "_line", b"_line", "_module_path", b"_module_path", "file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> None: ...
527
+ @typing.overload
528
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_file", b"_file"]) -> typing_extensions.Literal["file"] | None: ...
529
+ @typing.overload
530
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_line", b"_line"]) -> typing_extensions.Literal["line"] | None: ...
531
+ @typing.overload
532
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_module_path", b"_module_path"]) -> typing_extensions.Literal["module_path"] | None: ...
533
+
534
+ global___LogRecord = LogRecord
535
+
536
+ @typing_extensions.final
537
+ class LogBatch(google.protobuf.message.Message):
538
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
539
+
540
+ RECORDS_FIELD_NUMBER: builtins.int
541
+ @property
542
+ def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LogRecord]: ...
543
+ def __init__(
544
+ self,
545
+ *,
546
+ records: collections.abc.Iterable[global___LogRecord] | None = ...,
547
+ ) -> None: ...
548
+ def ClearField(self, field_name: typing_extensions.Literal["records", b"records"]) -> None: ...
549
+
550
+ global___LogBatch = LogBatch
@@ -0,0 +1,158 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: room.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from . import e2ee_pb2 as e2ee__pb2
15
+ from . import handle_pb2 as handle__pb2
16
+ from . import participant_pb2 as participant__pb2
17
+ from . import track_pb2 as track__pb2
18
+ from . import video_frame_pb2 as video__frame__pb2
19
+
20
+
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\"Y\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\x12+\n\x07options\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.RoomOptions\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\xfd\x02\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x04room\x18\x03 \x01(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x05 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracks\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"(\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x82\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x01(\x04\x12\x33\n\x07options\x18\x03 \x01(\x0b\x32\".livekit.proto.TrackPublishOptions\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x39\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"g\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x01(\x08\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\xa1\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x01(\x04\x12+\n\x04kind\x18\x04 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x18\n\x10\x64\x65stination_sids\x18\x05 \x03(\t\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"P\n\x1aUpdateLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08metadata\x18\x02 \x01(\t\"/\n\x1bUpdateLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"/\n\x1bUpdateLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UpdateLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\"+\n\x17UpdateLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"+\n\x17UpdateLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x01(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x01(\x04\"\x17\n\x15SetSubscribedResponse\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\x12\x15\n\rmax_framerate\x18\x02 \x01(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\"\x8a\x02\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\x84\x02\n\tRtcConfig\x12@\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportTypeH\x00\x88\x01\x01\x12P\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicyH\x01\x88\x01\x01\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServerB\x15\n\x13_ice_transport_typeB\x1d\n\x1b_continual_gathering_policy\"\xe0\x01\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12-\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsH\x00\x88\x01\x01\x12\x31\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfigH\x01\x88\x01\x01\x12\x14\n\x0cjoin_retries\x18\x06 \x01(\rB\x07\n\x05_e2eeB\r\n\x0b_rtc_config\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x01(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.livekit.proto.BufferInfo\"\xf3\x0b\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x38\n\x0ftrack_published\x18\x06 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x07 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\x08 \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\t \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\n \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0b \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\x0c \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\r \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0e \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x0f \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x10 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x11 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12\x34\n\rdata_received\x18\x12 \x01(\x0b\x32\x1b.livekit.proto.DataReceivedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x13 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x15 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x17 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x18 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x19 \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x42\t\n\x07message\"7\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08metadata\x18\x03 \x01(\t\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x01(\x0b\x32\x17.livekit.proto.RoomInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"2\n\x17ParticipantDisconnected\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x01(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x01(\t\"d\n\x0eTrackPublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x39\n\x0bpublication\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublication\"D\n\x10TrackUnpublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x01(\t\"T\n\x0fTrackSubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12(\n\x05track\x18\x02 \x01(\x0b\x32\x19.livekit.proto.OwnedTrack\"?\n\x11TrackUnsubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"T\n\x17TrackSubscriptionFailed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"8\n\nTrackMuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\":\n\x0cTrackUnmuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"Z\n\x10\x45\x32\x65\x65StateChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12-\n\x05state\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.EncryptionState\"1\n\x15\x41\x63tiveSpeakersChanged\x12\x18\n\x10participant_sids\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x01(\t\"G\n\x1aParticipantMetadataChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t\"?\n\x16ParticipantNameChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"f\n\x18\x43onnectionQualityChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x31\n\x07quality\x18\x02 \x01(\x0e\x32 .livekit.proto.ConnectionQuality\"\x97\x01\n\x0c\x44\x61taReceived\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\x1c\n\x0fparticipant_sid\x18\x02 \x01(\tH\x00\x88\x01\x01\x12+\n\x04kind\x18\x03 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKindB\x12\n\x10_participant_sid\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"\x0e\n\x0c\x44isconnected\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\t\n\x07RoomEOS*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*N\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3')
22
+
23
+ _globals = globals()
24
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
25
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'room_pb2', _globals)
26
+ if _descriptor._USE_C_DESCRIPTORS == False:
27
+
28
+ DESCRIPTOR._options = None
29
+ DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto'
30
+ _globals['_ICETRANSPORTTYPE']._serialized_start=6208
31
+ _globals['_ICETRANSPORTTYPE']._serialized_end=6288
32
+ _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=6290
33
+ _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=6357
34
+ _globals['_CONNECTIONQUALITY']._serialized_start=6359
35
+ _globals['_CONNECTIONQUALITY']._serialized_end=6437
36
+ _globals['_CONNECTIONSTATE']._serialized_start=6439
37
+ _globals['_CONNECTIONSTATE']._serialized_end=6522
38
+ _globals['_DATAPACKETKIND']._serialized_start=6524
39
+ _globals['_DATAPACKETKIND']._serialized_end=6575
40
+ _globals['_CONNECTREQUEST']._serialized_start=106
41
+ _globals['_CONNECTREQUEST']._serialized_end=195
42
+ _globals['_CONNECTRESPONSE']._serialized_start=197
43
+ _globals['_CONNECTRESPONSE']._serialized_end=232
44
+ _globals['_CONNECTCALLBACK']._serialized_start=235
45
+ _globals['_CONNECTCALLBACK']._serialized_end=616
46
+ _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_start=469
47
+ _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_end=606
48
+ _globals['_DISCONNECTREQUEST']._serialized_start=618
49
+ _globals['_DISCONNECTREQUEST']._serialized_end=658
50
+ _globals['_DISCONNECTRESPONSE']._serialized_start=660
51
+ _globals['_DISCONNECTRESPONSE']._serialized_end=698
52
+ _globals['_DISCONNECTCALLBACK']._serialized_start=700
53
+ _globals['_DISCONNECTCALLBACK']._serialized_end=738
54
+ _globals['_PUBLISHTRACKREQUEST']._serialized_start=741
55
+ _globals['_PUBLISHTRACKREQUEST']._serialized_end=871
56
+ _globals['_PUBLISHTRACKRESPONSE']._serialized_start=873
57
+ _globals['_PUBLISHTRACKRESPONSE']._serialized_end=913
58
+ _globals['_PUBLISHTRACKCALLBACK']._serialized_start=916
59
+ _globals['_PUBLISHTRACKCALLBACK']._serialized_end=1045
60
+ _globals['_UNPUBLISHTRACKREQUEST']._serialized_start=1047
61
+ _globals['_UNPUBLISHTRACKREQUEST']._serialized_end=1150
62
+ _globals['_UNPUBLISHTRACKRESPONSE']._serialized_start=1152
63
+ _globals['_UNPUBLISHTRACKRESPONSE']._serialized_end=1194
64
+ _globals['_UNPUBLISHTRACKCALLBACK']._serialized_start=1196
65
+ _globals['_UNPUBLISHTRACKCALLBACK']._serialized_end=1268
66
+ _globals['_PUBLISHDATAREQUEST']._serialized_start=1271
67
+ _globals['_PUBLISHDATAREQUEST']._serialized_end=1432
68
+ _globals['_PUBLISHDATARESPONSE']._serialized_start=1434
69
+ _globals['_PUBLISHDATARESPONSE']._serialized_end=1473
70
+ _globals['_PUBLISHDATACALLBACK']._serialized_start=1475
71
+ _globals['_PUBLISHDATACALLBACK']._serialized_end=1544
72
+ _globals['_UPDATELOCALMETADATAREQUEST']._serialized_start=1546
73
+ _globals['_UPDATELOCALMETADATAREQUEST']._serialized_end=1626
74
+ _globals['_UPDATELOCALMETADATARESPONSE']._serialized_start=1628
75
+ _globals['_UPDATELOCALMETADATARESPONSE']._serialized_end=1675
76
+ _globals['_UPDATELOCALMETADATACALLBACK']._serialized_start=1677
77
+ _globals['_UPDATELOCALMETADATACALLBACK']._serialized_end=1724
78
+ _globals['_UPDATELOCALNAMEREQUEST']._serialized_start=1726
79
+ _globals['_UPDATELOCALNAMEREQUEST']._serialized_end=1798
80
+ _globals['_UPDATELOCALNAMERESPONSE']._serialized_start=1800
81
+ _globals['_UPDATELOCALNAMERESPONSE']._serialized_end=1843
82
+ _globals['_UPDATELOCALNAMECALLBACK']._serialized_start=1845
83
+ _globals['_UPDATELOCALNAMECALLBACK']._serialized_end=1888
84
+ _globals['_SETSUBSCRIBEDREQUEST']._serialized_start=1890
85
+ _globals['_SETSUBSCRIBEDREQUEST']._serialized_end=1959
86
+ _globals['_SETSUBSCRIBEDRESPONSE']._serialized_start=1961
87
+ _globals['_SETSUBSCRIBEDRESPONSE']._serialized_end=1984
88
+ _globals['_VIDEOENCODING']._serialized_start=1986
89
+ _globals['_VIDEOENCODING']._serialized_end=2045
90
+ _globals['_AUDIOENCODING']._serialized_start=2047
91
+ _globals['_AUDIOENCODING']._serialized_end=2083
92
+ _globals['_TRACKPUBLISHOPTIONS']._serialized_start=2086
93
+ _globals['_TRACKPUBLISHOPTIONS']._serialized_end=2352
94
+ _globals['_ICESERVER']._serialized_start=2354
95
+ _globals['_ICESERVER']._serialized_end=2415
96
+ _globals['_RTCCONFIG']._serialized_start=2418
97
+ _globals['_RTCCONFIG']._serialized_end=2678
98
+ _globals['_ROOMOPTIONS']._serialized_start=2681
99
+ _globals['_ROOMOPTIONS']._serialized_end=2905
100
+ _globals['_BUFFERINFO']._serialized_start=2907
101
+ _globals['_BUFFERINFO']._serialized_end=2955
102
+ _globals['_OWNEDBUFFER']._serialized_start=2957
103
+ _globals['_OWNEDBUFFER']._serialized_end=3058
104
+ _globals['_ROOMEVENT']._serialized_start=3061
105
+ _globals['_ROOMEVENT']._serialized_end=4584
106
+ _globals['_ROOMINFO']._serialized_start=4586
107
+ _globals['_ROOMINFO']._serialized_end=4641
108
+ _globals['_OWNEDROOM']._serialized_start=4643
109
+ _globals['_OWNEDROOM']._serialized_end=4740
110
+ _globals['_PARTICIPANTCONNECTED']._serialized_start=4742
111
+ _globals['_PARTICIPANTCONNECTED']._serialized_end=4811
112
+ _globals['_PARTICIPANTDISCONNECTED']._serialized_start=4813
113
+ _globals['_PARTICIPANTDISCONNECTED']._serialized_end=4863
114
+ _globals['_LOCALTRACKPUBLISHED']._serialized_start=4865
115
+ _globals['_LOCALTRACKPUBLISHED']._serialized_end=4905
116
+ _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=4907
117
+ _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=4955
118
+ _globals['_TRACKPUBLISHED']._serialized_start=4957
119
+ _globals['_TRACKPUBLISHED']._serialized_end=5057
120
+ _globals['_TRACKUNPUBLISHED']._serialized_start=5059
121
+ _globals['_TRACKUNPUBLISHED']._serialized_end=5127
122
+ _globals['_TRACKSUBSCRIBED']._serialized_start=5129
123
+ _globals['_TRACKSUBSCRIBED']._serialized_end=5213
124
+ _globals['_TRACKUNSUBSCRIBED']._serialized_start=5215
125
+ _globals['_TRACKUNSUBSCRIBED']._serialized_end=5278
126
+ _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=5280
127
+ _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=5364
128
+ _globals['_TRACKMUTED']._serialized_start=5366
129
+ _globals['_TRACKMUTED']._serialized_end=5422
130
+ _globals['_TRACKUNMUTED']._serialized_start=5424
131
+ _globals['_TRACKUNMUTED']._serialized_end=5482
132
+ _globals['_E2EESTATECHANGED']._serialized_start=5484
133
+ _globals['_E2EESTATECHANGED']._serialized_end=5574
134
+ _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=5576
135
+ _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=5625
136
+ _globals['_ROOMMETADATACHANGED']._serialized_start=5627
137
+ _globals['_ROOMMETADATACHANGED']._serialized_end=5666
138
+ _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=5668
139
+ _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=5739
140
+ _globals['_PARTICIPANTNAMECHANGED']._serialized_start=5741
141
+ _globals['_PARTICIPANTNAMECHANGED']._serialized_end=5804
142
+ _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=5806
143
+ _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=5908
144
+ _globals['_DATARECEIVED']._serialized_start=5911
145
+ _globals['_DATARECEIVED']._serialized_end=6062
146
+ _globals['_CONNECTIONSTATECHANGED']._serialized_start=6064
147
+ _globals['_CONNECTIONSTATECHANGED']._serialized_end=6135
148
+ _globals['_CONNECTED']._serialized_start=6137
149
+ _globals['_CONNECTED']._serialized_end=6148
150
+ _globals['_DISCONNECTED']._serialized_start=6150
151
+ _globals['_DISCONNECTED']._serialized_end=6164
152
+ _globals['_RECONNECTING']._serialized_start=6166
153
+ _globals['_RECONNECTING']._serialized_end=6180
154
+ _globals['_RECONNECTED']._serialized_start=6182
155
+ _globals['_RECONNECTED']._serialized_end=6195
156
+ _globals['_ROOMEOS']._serialized_start=6197
157
+ _globals['_ROOMEOS']._serialized_end=6206
158
+ # @@protoc_insertion_point(module_scope)
@@ -712,6 +712,7 @@ class RoomOptions(google.protobuf.message.Message):
712
712
  DYNACAST_FIELD_NUMBER: builtins.int
713
713
  E2EE_FIELD_NUMBER: builtins.int
714
714
  RTC_CONFIG_FIELD_NUMBER: builtins.int
715
+ JOIN_RETRIES_FIELD_NUMBER: builtins.int
715
716
  auto_subscribe: builtins.bool
716
717
  adaptive_stream: builtins.bool
717
718
  dynacast: builtins.bool
@@ -720,6 +721,7 @@ class RoomOptions(google.protobuf.message.Message):
720
721
  @property
721
722
  def rtc_config(self) -> global___RtcConfig:
722
723
  """allow to setup a custom RtcConfiguration"""
724
+ join_retries: builtins.int
723
725
  def __init__(
724
726
  self,
725
727
  *,
@@ -728,9 +730,10 @@ class RoomOptions(google.protobuf.message.Message):
728
730
  dynacast: builtins.bool = ...,
729
731
  e2ee: e2ee_pb2.E2eeOptions | None = ...,
730
732
  rtc_config: global___RtcConfig | None = ...,
733
+ join_retries: builtins.int = ...,
731
734
  ) -> None: ...
732
735
  def HasField(self, field_name: typing_extensions.Literal["_e2ee", b"_e2ee", "_rtc_config", b"_rtc_config", "e2ee", b"e2ee", "rtc_config", b"rtc_config"]) -> builtins.bool: ...
733
- def ClearField(self, field_name: typing_extensions.Literal["_e2ee", b"_e2ee", "_rtc_config", b"_rtc_config", "adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "dynacast", b"dynacast", "e2ee", b"e2ee", "rtc_config", b"rtc_config"]) -> None: ...
736
+ def ClearField(self, field_name: typing_extensions.Literal["_e2ee", b"_e2ee", "_rtc_config", b"_rtc_config", "adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "dynacast", b"dynacast", "e2ee", b"e2ee", "join_retries", b"join_retries", "rtc_config", b"rtc_config"]) -> None: ...
734
737
  @typing.overload
735
738
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_e2ee", b"_e2ee"]) -> typing_extensions.Literal["e2ee"] | None: ...
736
739
  @typing.overload
@@ -13,14 +13,14 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import ctypes
16
- from typing import List, Optional, Union
16
+ from typing import List, Union
17
17
 
18
18
  from ._ffi_client import FfiHandle, ffi_client
19
19
  from ._proto import ffi_pb2 as proto_ffi
20
20
  from ._proto import participant_pb2 as proto_participant
21
21
  from ._proto.room_pb2 import DataPacketKind, TrackPublishOptions
22
22
  from ._utils import BroadcastQueue
23
- from .track import LocalAudioTrack, LocalVideoTrack, Track
23
+ from .track import LocalTrack
24
24
  from .track_publication import (
25
25
  LocalTrackPublication,
26
26
  RemoteTrackPublication,
@@ -80,7 +80,8 @@ class LocalParticipant(Participant):
80
80
  self,
81
81
  payload: Union[bytes, str],
82
82
  kind: DataPacketKind.ValueType = DataPacketKind.KIND_RELIABLE,
83
- destination_sids: Optional[List[Union[str, "RemoteParticipant"]]] = None,
83
+ destination_sids: List[Union[str, "RemoteParticipant"]] = [],
84
+ topic: str = "",
84
85
  ) -> None:
85
86
  if isinstance(payload, str):
86
87
  payload = payload.encode("utf-8")
@@ -93,16 +94,16 @@ class LocalParticipant(Participant):
93
94
  req.publish_data.data_ptr = ctypes.addressof(cdata)
94
95
  req.publish_data.data_len = data_len
95
96
  req.publish_data.kind = kind
97
+ req.publish_data.topic = topic
96
98
 
97
- if destination_sids is not None:
98
- sids = []
99
- for p in destination_sids:
100
- if isinstance(p, RemoteParticipant):
101
- sids.append(p.sid)
102
- else:
103
- sids.append(p)
99
+ sids = []
100
+ for p in destination_sids:
101
+ if isinstance(p, RemoteParticipant):
102
+ sids.append(p.sid)
103
+ else:
104
+ sids.append(p)
104
105
 
105
- req.publish_data.destination_sids.extend(sids)
106
+ req.publish_data.destination_sids.extend(sids)
106
107
 
107
108
  queue = ffi_client.queue.subscribe()
108
109
  try:
@@ -147,13 +148,8 @@ class LocalParticipant(Participant):
147
148
  ffi_client.queue.unsubscribe(queue)
148
149
 
149
150
  async def publish_track(
150
- self, track: Track, options: TrackPublishOptions
151
- ) -> TrackPublication:
152
- if not isinstance(track, LocalAudioTrack) and not isinstance(
153
- track, LocalVideoTrack
154
- ):
155
- raise Exception("cannot publish a remote track")
156
-
151
+ self, track: LocalTrack, options: TrackPublishOptions
152
+ ) -> LocalTrackPublication:
157
153
  req = proto_ffi.FfiRequest()
158
154
  req.publish_track.track_handle = track._ffi_handle.handle
159
155
  req.publish_track.local_participant_handle = self._ffi_handle.handle
@@ -370,7 +370,13 @@ class Room(EventEmitter[EventTypes]):
370
370
  rparticipant = None
371
371
  if event.data_received.participant_sid:
372
372
  rparticipant = self.participants[event.data_received.participant_sid]
373
- self.emit("data_received", data, event.data_received.kind, rparticipant)
373
+ self.emit(
374
+ "data_received",
375
+ data,
376
+ event.data_received.kind,
377
+ rparticipant,
378
+ event.data_received.topic,
379
+ )
374
380
  elif which == "e2ee_state_changed":
375
381
  sid = event.e2ee_state_changed.participant_sid
376
382
  e2ee_state = event.e2ee_state_changed.state
@@ -0,0 +1 @@
1
+ __version__ = "0.7.0.dev0"
@@ -90,7 +90,7 @@ class VideoFrameBuffer(ABC):
90
90
 
91
91
  @staticmethod
92
92
  def _from_owned_info(
93
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
93
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
94
94
  ) -> "VideoFrameBuffer":
95
95
  """
96
96
  Create the right class instance from the VideoFrameBufferInfo
@@ -132,7 +132,7 @@ class NativeVideoBuffer(VideoFrameBuffer):
132
132
 
133
133
  @staticmethod
134
134
  def _from_owned_info(
135
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
135
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
136
136
  ) -> "NativeVideoBuffer":
137
137
  return NativeVideoBuffer(owned_info)
138
138
 
@@ -398,7 +398,7 @@ class I420Buffer(PlanarYuv8Buffer):
398
398
 
399
399
  @staticmethod
400
400
  def _from_owned_info(
401
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
401
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
402
402
  ) -> "I420Buffer":
403
403
  info = owned_info.info
404
404
  stride_y = info.yuv.stride_y
@@ -464,7 +464,7 @@ class I420ABuffer(PlanarYuv8Buffer):
464
464
 
465
465
  @staticmethod
466
466
  def _from_owned_info(
467
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
467
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
468
468
  ) -> "I420ABuffer":
469
469
  info = owned_info.info
470
470
  stride_y = info.yuv.stride_y
@@ -545,7 +545,7 @@ class I422Buffer(PlanarYuv8Buffer):
545
545
 
546
546
  @staticmethod
547
547
  def _from_owned_info(
548
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
548
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
549
549
  ) -> "I422Buffer":
550
550
  info = owned_info.info
551
551
  stride_y = info.yuv.stride_y
@@ -598,7 +598,7 @@ class I444Buffer(PlanarYuv8Buffer):
598
598
 
599
599
  @staticmethod
600
600
  def _from_owned_info(
601
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
601
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
602
602
  ) -> "I444Buffer":
603
603
  info = owned_info.info
604
604
  stride_y = info.yuv.stride_y
@@ -651,7 +651,7 @@ class I010Buffer(PlanarYuv16Buffer):
651
651
 
652
652
  @staticmethod
653
653
  def _from_owned_info(
654
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
654
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
655
655
  ) -> "I010Buffer":
656
656
  info = owned_info.info
657
657
  stride_y = info.yuv.stride_y
@@ -705,7 +705,7 @@ class NV12Buffer(BiplanaraYuv8Buffer):
705
705
 
706
706
  @staticmethod
707
707
  def _from_owned_info(
708
- owned_info: proto_video_frame.OwnedVideoFrameBuffer
708
+ owned_info: proto_video_frame.OwnedVideoFrameBuffer,
709
709
  ) -> "NV12Buffer":
710
710
  info = owned_info.info
711
711
  stride_y = info.bi_yuv.stride_y
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit
3
- Version: 0.6.0
3
+ Version: 0.7.0.dev0
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,158 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: room.proto
4
- """Generated protocol buffer code."""
5
- from google.protobuf import descriptor as _descriptor
6
- from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import symbol_database as _symbol_database
8
- from google.protobuf.internal import builder as _builder
9
- # @@protoc_insertion_point(imports)
10
-
11
- _sym_db = _symbol_database.Default()
12
-
13
-
14
- from . import e2ee_pb2 as e2ee__pb2
15
- from . import handle_pb2 as handle__pb2
16
- from . import participant_pb2 as participant__pb2
17
- from . import track_pb2 as track__pb2
18
- from . import video_frame_pb2 as video__frame__pb2
19
-
20
-
21
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\"Y\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\x12+\n\x07options\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.RoomOptions\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\xfd\x02\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x04room\x18\x03 \x01(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x05 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracks\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"(\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x82\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x01(\x04\x12\x33\n\x07options\x18\x03 \x01(\x0b\x32\".livekit.proto.TrackPublishOptions\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x39\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"g\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x01(\x08\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\xa1\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x01(\x04\x12+\n\x04kind\x18\x04 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x18\n\x10\x64\x65stination_sids\x18\x05 \x03(\t\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"P\n\x1aUpdateLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08metadata\x18\x02 \x01(\t\"/\n\x1bUpdateLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"/\n\x1bUpdateLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UpdateLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\"+\n\x17UpdateLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"+\n\x17UpdateLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x01(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x01(\x04\"\x17\n\x15SetSubscribedResponse\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\x12\x15\n\rmax_framerate\x18\x02 \x01(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\"\x8a\x02\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\x84\x02\n\tRtcConfig\x12@\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportTypeH\x00\x88\x01\x01\x12P\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicyH\x01\x88\x01\x01\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServerB\x15\n\x13_ice_transport_typeB\x1d\n\x1b_continual_gathering_policy\"\xca\x01\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12-\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsH\x00\x88\x01\x01\x12\x31\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfigH\x01\x88\x01\x01\x42\x07\n\x05_e2eeB\r\n\x0b_rtc_config\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x01(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.livekit.proto.BufferInfo\"\xf3\x0b\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x38\n\x0ftrack_published\x18\x06 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x07 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\x08 \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\t \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\n \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0b \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\x0c \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\r \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0e \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x0f \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x10 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x11 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12\x34\n\rdata_received\x18\x12 \x01(\x0b\x32\x1b.livekit.proto.DataReceivedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x13 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x15 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x17 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x18 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x19 \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x42\t\n\x07message\"7\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08metadata\x18\x03 \x01(\t\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x01(\x0b\x32\x17.livekit.proto.RoomInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"2\n\x17ParticipantDisconnected\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x01(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x01(\t\"d\n\x0eTrackPublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x39\n\x0bpublication\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublication\"D\n\x10TrackUnpublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x01(\t\"T\n\x0fTrackSubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12(\n\x05track\x18\x02 \x01(\x0b\x32\x19.livekit.proto.OwnedTrack\"?\n\x11TrackUnsubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"T\n\x17TrackSubscriptionFailed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"8\n\nTrackMuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\":\n\x0cTrackUnmuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"Z\n\x10\x45\x32\x65\x65StateChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12-\n\x05state\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.EncryptionState\"1\n\x15\x41\x63tiveSpeakersChanged\x12\x18\n\x10participant_sids\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x01(\t\"G\n\x1aParticipantMetadataChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t\"?\n\x16ParticipantNameChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"f\n\x18\x43onnectionQualityChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x31\n\x07quality\x18\x02 \x01(\x0e\x32 .livekit.proto.ConnectionQuality\"\x97\x01\n\x0c\x44\x61taReceived\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\x1c\n\x0fparticipant_sid\x18\x02 \x01(\tH\x00\x88\x01\x01\x12+\n\x04kind\x18\x03 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKindB\x12\n\x10_participant_sid\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"\x0e\n\x0c\x44isconnected\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\t\n\x07RoomEOS*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*N\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3')
22
-
23
- _globals = globals()
24
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
25
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'room_pb2', _globals)
26
- if _descriptor._USE_C_DESCRIPTORS == False:
27
-
28
- DESCRIPTOR._options = None
29
- DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto'
30
- _globals['_ICETRANSPORTTYPE']._serialized_start=6186
31
- _globals['_ICETRANSPORTTYPE']._serialized_end=6266
32
- _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=6268
33
- _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=6335
34
- _globals['_CONNECTIONQUALITY']._serialized_start=6337
35
- _globals['_CONNECTIONQUALITY']._serialized_end=6415
36
- _globals['_CONNECTIONSTATE']._serialized_start=6417
37
- _globals['_CONNECTIONSTATE']._serialized_end=6500
38
- _globals['_DATAPACKETKIND']._serialized_start=6502
39
- _globals['_DATAPACKETKIND']._serialized_end=6553
40
- _globals['_CONNECTREQUEST']._serialized_start=106
41
- _globals['_CONNECTREQUEST']._serialized_end=195
42
- _globals['_CONNECTRESPONSE']._serialized_start=197
43
- _globals['_CONNECTRESPONSE']._serialized_end=232
44
- _globals['_CONNECTCALLBACK']._serialized_start=235
45
- _globals['_CONNECTCALLBACK']._serialized_end=616
46
- _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_start=469
47
- _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_end=606
48
- _globals['_DISCONNECTREQUEST']._serialized_start=618
49
- _globals['_DISCONNECTREQUEST']._serialized_end=658
50
- _globals['_DISCONNECTRESPONSE']._serialized_start=660
51
- _globals['_DISCONNECTRESPONSE']._serialized_end=698
52
- _globals['_DISCONNECTCALLBACK']._serialized_start=700
53
- _globals['_DISCONNECTCALLBACK']._serialized_end=738
54
- _globals['_PUBLISHTRACKREQUEST']._serialized_start=741
55
- _globals['_PUBLISHTRACKREQUEST']._serialized_end=871
56
- _globals['_PUBLISHTRACKRESPONSE']._serialized_start=873
57
- _globals['_PUBLISHTRACKRESPONSE']._serialized_end=913
58
- _globals['_PUBLISHTRACKCALLBACK']._serialized_start=916
59
- _globals['_PUBLISHTRACKCALLBACK']._serialized_end=1045
60
- _globals['_UNPUBLISHTRACKREQUEST']._serialized_start=1047
61
- _globals['_UNPUBLISHTRACKREQUEST']._serialized_end=1150
62
- _globals['_UNPUBLISHTRACKRESPONSE']._serialized_start=1152
63
- _globals['_UNPUBLISHTRACKRESPONSE']._serialized_end=1194
64
- _globals['_UNPUBLISHTRACKCALLBACK']._serialized_start=1196
65
- _globals['_UNPUBLISHTRACKCALLBACK']._serialized_end=1268
66
- _globals['_PUBLISHDATAREQUEST']._serialized_start=1271
67
- _globals['_PUBLISHDATAREQUEST']._serialized_end=1432
68
- _globals['_PUBLISHDATARESPONSE']._serialized_start=1434
69
- _globals['_PUBLISHDATARESPONSE']._serialized_end=1473
70
- _globals['_PUBLISHDATACALLBACK']._serialized_start=1475
71
- _globals['_PUBLISHDATACALLBACK']._serialized_end=1544
72
- _globals['_UPDATELOCALMETADATAREQUEST']._serialized_start=1546
73
- _globals['_UPDATELOCALMETADATAREQUEST']._serialized_end=1626
74
- _globals['_UPDATELOCALMETADATARESPONSE']._serialized_start=1628
75
- _globals['_UPDATELOCALMETADATARESPONSE']._serialized_end=1675
76
- _globals['_UPDATELOCALMETADATACALLBACK']._serialized_start=1677
77
- _globals['_UPDATELOCALMETADATACALLBACK']._serialized_end=1724
78
- _globals['_UPDATELOCALNAMEREQUEST']._serialized_start=1726
79
- _globals['_UPDATELOCALNAMEREQUEST']._serialized_end=1798
80
- _globals['_UPDATELOCALNAMERESPONSE']._serialized_start=1800
81
- _globals['_UPDATELOCALNAMERESPONSE']._serialized_end=1843
82
- _globals['_UPDATELOCALNAMECALLBACK']._serialized_start=1845
83
- _globals['_UPDATELOCALNAMECALLBACK']._serialized_end=1888
84
- _globals['_SETSUBSCRIBEDREQUEST']._serialized_start=1890
85
- _globals['_SETSUBSCRIBEDREQUEST']._serialized_end=1959
86
- _globals['_SETSUBSCRIBEDRESPONSE']._serialized_start=1961
87
- _globals['_SETSUBSCRIBEDRESPONSE']._serialized_end=1984
88
- _globals['_VIDEOENCODING']._serialized_start=1986
89
- _globals['_VIDEOENCODING']._serialized_end=2045
90
- _globals['_AUDIOENCODING']._serialized_start=2047
91
- _globals['_AUDIOENCODING']._serialized_end=2083
92
- _globals['_TRACKPUBLISHOPTIONS']._serialized_start=2086
93
- _globals['_TRACKPUBLISHOPTIONS']._serialized_end=2352
94
- _globals['_ICESERVER']._serialized_start=2354
95
- _globals['_ICESERVER']._serialized_end=2415
96
- _globals['_RTCCONFIG']._serialized_start=2418
97
- _globals['_RTCCONFIG']._serialized_end=2678
98
- _globals['_ROOMOPTIONS']._serialized_start=2681
99
- _globals['_ROOMOPTIONS']._serialized_end=2883
100
- _globals['_BUFFERINFO']._serialized_start=2885
101
- _globals['_BUFFERINFO']._serialized_end=2933
102
- _globals['_OWNEDBUFFER']._serialized_start=2935
103
- _globals['_OWNEDBUFFER']._serialized_end=3036
104
- _globals['_ROOMEVENT']._serialized_start=3039
105
- _globals['_ROOMEVENT']._serialized_end=4562
106
- _globals['_ROOMINFO']._serialized_start=4564
107
- _globals['_ROOMINFO']._serialized_end=4619
108
- _globals['_OWNEDROOM']._serialized_start=4621
109
- _globals['_OWNEDROOM']._serialized_end=4718
110
- _globals['_PARTICIPANTCONNECTED']._serialized_start=4720
111
- _globals['_PARTICIPANTCONNECTED']._serialized_end=4789
112
- _globals['_PARTICIPANTDISCONNECTED']._serialized_start=4791
113
- _globals['_PARTICIPANTDISCONNECTED']._serialized_end=4841
114
- _globals['_LOCALTRACKPUBLISHED']._serialized_start=4843
115
- _globals['_LOCALTRACKPUBLISHED']._serialized_end=4883
116
- _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=4885
117
- _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=4933
118
- _globals['_TRACKPUBLISHED']._serialized_start=4935
119
- _globals['_TRACKPUBLISHED']._serialized_end=5035
120
- _globals['_TRACKUNPUBLISHED']._serialized_start=5037
121
- _globals['_TRACKUNPUBLISHED']._serialized_end=5105
122
- _globals['_TRACKSUBSCRIBED']._serialized_start=5107
123
- _globals['_TRACKSUBSCRIBED']._serialized_end=5191
124
- _globals['_TRACKUNSUBSCRIBED']._serialized_start=5193
125
- _globals['_TRACKUNSUBSCRIBED']._serialized_end=5256
126
- _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=5258
127
- _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=5342
128
- _globals['_TRACKMUTED']._serialized_start=5344
129
- _globals['_TRACKMUTED']._serialized_end=5400
130
- _globals['_TRACKUNMUTED']._serialized_start=5402
131
- _globals['_TRACKUNMUTED']._serialized_end=5460
132
- _globals['_E2EESTATECHANGED']._serialized_start=5462
133
- _globals['_E2EESTATECHANGED']._serialized_end=5552
134
- _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=5554
135
- _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=5603
136
- _globals['_ROOMMETADATACHANGED']._serialized_start=5605
137
- _globals['_ROOMMETADATACHANGED']._serialized_end=5644
138
- _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=5646
139
- _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=5717
140
- _globals['_PARTICIPANTNAMECHANGED']._serialized_start=5719
141
- _globals['_PARTICIPANTNAMECHANGED']._serialized_end=5782
142
- _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=5784
143
- _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=5886
144
- _globals['_DATARECEIVED']._serialized_start=5889
145
- _globals['_DATARECEIVED']._serialized_end=6040
146
- _globals['_CONNECTIONSTATECHANGED']._serialized_start=6042
147
- _globals['_CONNECTIONSTATECHANGED']._serialized_end=6113
148
- _globals['_CONNECTED']._serialized_start=6115
149
- _globals['_CONNECTED']._serialized_end=6126
150
- _globals['_DISCONNECTED']._serialized_start=6128
151
- _globals['_DISCONNECTED']._serialized_end=6142
152
- _globals['_RECONNECTING']._serialized_start=6144
153
- _globals['_RECONNECTING']._serialized_end=6158
154
- _globals['_RECONNECTED']._serialized_start=6160
155
- _globals['_RECONNECTED']._serialized_end=6173
156
- _globals['_ROOMEOS']._serialized_start=6175
157
- _globals['_ROOMEOS']._serialized_end=6184
158
- # @@protoc_insertion_point(module_scope)
@@ -1 +0,0 @@
1
- __version__ = "0.6.0"
File without changes
File without changes
File without changes
File without changes