Skip to content

Commit 82d542b

Browse files
committed
feat: override use_legacy_client_implementation to be true while python based data streams implementation still exists
1 parent 0ef63ce commit 82d542b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

livekit-rtc/livekit/rtc/room.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,11 @@ def on_participant_connected(participant):
467467
req.connect.options.auto_subscribe = options.auto_subscribe
468468
req.connect.options.dynacast = options.dynacast
469469

470+
# The Python SDK still implements data streams in Python on top of raw FFI
471+
# packets, so always advertise only legacy (v1) data stream support to other
472+
# clients.
473+
req.connect.options.data_stream.use_legacy_client_implementation = True
474+
470475
if options.connect_timeout is not None:
471476
req.connect.options.connect_timeout_ms = int(options.connect_timeout * 1000)
472477

0 commit comments

Comments
 (0)