Skip to content

Improved data tracks depacketizer to support mutliple in flight packets#1101

Open
ladvoc wants to merge 2 commits into
mainfrom
ladvoc/multiple-in-flight-packets
Open

Improved data tracks depacketizer to support mutliple in flight packets#1101
ladvoc wants to merge 2 commits into
mainfrom
ladvoc/multiple-in-flight-packets

Conversation

@ladvoc
Copy link
Copy Markdown
Contributor

@ladvoc ladvoc commented May 18, 2026

Equivalent to the implementation in: livekit/client-sdk-js#1923

@ladvoc ladvoc requested a review from 1egoman as a code owner May 18, 2026 18:56
@github-actions
Copy link
Copy Markdown
Contributor

Changeset

The following package versions will be affected by this PR:

Package Bump
livekit minor
livekit-datatrack minor
livekit-ffi minor

Comment on lines +128 to 130
if result.drop_error.is_none() {
result.drop_error = Some(evicted);
}
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.

thought: It it worth logging the drop_errors which aren't being returned here so they are at least surfaced to the user somehow?

info: info.clone(),
publisher_identity,
decryption_provider: None,
max_partial_frames: Arc::new(AtomicUsize::new(1)),
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.

nitpick: It might be worth making this max_partial_frames value default of 1 a constant - it is used enough (at least a few spots) where I think it would be beneficial.

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