Skip to content

Data blobs#1595

Draft
ladvoc wants to merge 6 commits into
mainfrom
ladvoc/data-blob-support
Draft

Data blobs#1595
ladvoc wants to merge 6 commits into
mainfrom
ladvoc/data-blob-support

Conversation

@ladvoc

@ladvoc ladvoc commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

To support data tracks schema metadata (see #1553), this PR introduces a general purpose mechanism for storing large (in the order of KBs), arbitrary data blobs in a room that can be retrieved by other participants on demand.

@changeset-bot

changeset-bot Bot commented Jun 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3304dac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ladvoc ladvoc requested a review from boks1971 June 1, 2026 18:13

@boks1971 boks1971 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.

lgtm! can we hold merging till integration on server side and getting feedback on server side changes? Just want to make sure if there are other changes, it will all be in one PR.

Comment thread protobufs/livekit_rtc.proto Outdated
UpdateLocalVideoTrack update_video_track = 9;
PublishDataTrackRequest publish_data_track = 10;
UnpublishDataTrackRequest unpublish_data_track = 11;
StoreDataBlobRequest store_data_blob = 12;

@ladvoc ladvoc Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@boks1971, I just realized adding this case to RequestResponse's request oneof is not a good idea since that means the entire blob contents will be echoed back in case of error. Is the best solution to omit it here and add request ID fields to associate request and response?

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.

All request responses include the response. We can special case this and not include the request and use the request Id. I think single error with large request is okay, but if somebody spams, then it is problematic.

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