Repository navigation
Add Compress option to data stream send options - #400
Merged
Merged
Conversation
1egoman
requested review from
MaxHeimbrock,
changt,
cloudwebrtc,
ladvoc and
xianshijing-lk
as code owners
November 19, 2026 21:08
|
This PR bumps
|
The bundled livekit-ffi compresses SendText and SendFile payloads by default, but the C# options never exposed the proto's compress field, so Unity callers couldn't opt out for already-compressed data. Co-Authored-By: Claude Opus 5.5 <[email protected]>
MaxHeimbrock
force-pushed
the
data-streams-compress-option
branch
from
November 23, 2026 08:40
6680b96 to
4e974fb
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.
Background
The bundled livekit-ffi (data streams v2) compresses
SendTextandSendFilepayloads by default when every recipient supports it. The FFI'sStreamTextOptionsandStreamByteOptionsprotos have an optionalcompressfield to opt out, but the C# options never set it. Unity callers can't turn compression off for data that's already compressed, which every other SDK with data streams v2 allows.Changes
bool? CompresstoStreamOptions, passed through byStreamTextOptions.ToProtoandStreamByteOptions.ToProtoonly when set. Unset keeps the FFI default (compress).I couldn't run the Unity tests locally (no editor on this machine), so CI is the first run of the new tests.
🤖 Generated with Claude Code