Skip to content

Commit d53399f

Browse files
committed
feat: override use_legacy_client_implementation to be true while python based data streams implementation still exists
1 parent e8e2370 commit d53399f

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
@@ -466,6 +466,11 @@ def on_participant_connected(participant):
466466
req.connect.options.auto_subscribe = options.auto_subscribe
467467
req.connect.options.dynacast = options.dynacast
468468

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

0 commit comments

Comments
 (0)