Skip to content

Add Compress option to data stream send options - #400

Merged
MaxHeimbrock merged 1 commit into
mainfrom
data-streams-compress-option
Nov 23, 2026
Merged

MaxHeimbrock merged 1 commit into
mainfrom
data-streams-compress-option

Conversation

@1egoman

@1egoman 1egoman commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Background

The bundled livekit-ffi (data streams v2) compresses SendText and SendFile payloads by default when every recipient supports it. The FFI's StreamTextOptions and StreamByteOptions protos have an optional compress field 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

  • Added bool? Compress to StreamOptions, passed through by StreamTextOptions.ToProto and StreamByteOptions.ToProto only when set. Unset keeps the FFI default (compress).
  • Added EditMode tests for the proto mapping.
  • Added a minor changeset.

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

@github-actions

Copy link
Copy Markdown

This PR bumps

  • io.livekit.livekit-sdk: minor

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@MaxHeimbrock MaxHeimbrock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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
MaxHeimbrock force-pushed the data-streams-compress-option branch from 6680b96 to 4e974fb Compare November 23, 2026 08:40
@MaxHeimbrock
MaxHeimbrock merged commit 5fd84ee into main Nov 23, 2026
20 of 21 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the data-streams-compress-option branch November 23, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants