Bump livekit ffi#766
Draft
1egoman wants to merge 2 commits into
Draft
Conversation
…on based data streams implementation still exists
1egoman
force-pushed
the
bump-livekit-ffi
branch
from
July 23, 2026 20:25
d53399f to
758f0f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
The
livekit-ffiversion is not updated in this yet.Updates
livekit-ffito the latest version, which contains data streams v2.In addition to the ffi package update itself, there's a bit more that has to be done here because the python sdk today has its own data streams implementation. I'm working on migrating this package to use the
livekit-ffiprovided data streams but in the meantime, if thelivekit-ffiupdate was done today, then it would mean that the newly introducedclient_protocolof2would be advertised, and the pre-existing node implementation would receive data stream v2 messages, not v1 (ie, single packet data streams, compression, etc could be sent to the existing python data streams code).To address this, I've added a temporary
options.data_stream.use_legacy_client_implementationflag which can be set to disable advertising the new client protocol. What this means in practice:client_protocolof1, so no inline content / compression)livekit-ffi's data streams implementation, just like it works today)Once
livekit-ffidata stream migration is done, I'll merge it and drop this flag both here and on the rust sdk end, and then everything will use data streams v2 everywhere.I've tested this locally (all the data streams and rpc paths above) with success.
Todo
livekit-ffirelease