Skip to content

feat(server-sdk): add addDestinations to EgressClient.updateStream - #772

Open
CSantosM wants to merge 1 commit into
livekit:mainfrom
CSantosM:feat/egress-stream-destinations
Open

CSantosM wants to merge 1 commit into
livekit:mainfrom
CSantosM:feat/egress-stream-destinations

Conversation

@CSantosM

Copy link
Copy Markdown

Follow-up to livekit/egress#1462 (requested in livekit/egress#1423), on livekit/protocol#1873: egress now lets a client give each stream an id of its own, through StreamOutput.destinations and UpdateStreamRequest.add_destinations, and reports it back on StreamInfo.id. This exposes it in the Node server SDK.

  • EgressClient.updateStream takes an optional fourth argument, addDestinations, sent as add_destinations. A stream added this way is removed like any other, with removeOutputUrls.
  • StreamDestination is re-exported from livekit-server-sdk.
  • @livekit/protocol goes to 1.53.1, the first release with these fields (the same bump Update Update LiveKit dependencies (non-major) #769 carries).

Starting an egress with destinations needed no change: a StreamOutput built with destinations already goes through startRoomCompositeEgress and the other start methods, and a unit test pins it.

Tests: src/EgressClient.test.ts checks the request bodies of both calls, and the updateStream smoke test in test/api now sends a destination (passes against livekit/test-server:latest).

livekit/egress#1462 lets a client give each stream an id
(StreamOutput.destinations, UpdateStreamRequest.add_destinations) and
reports it back on StreamInfo.id, since redacted urls and the order of
stream_results cannot tell streams apart. Starting with destinations
already works through a StreamOutput; adding them to a running egress
needed updateStream to pass them on.

Updates @livekit/protocol to 1.53.1, the first release with these fields,
and re-exports StreamDestination.
@changeset-bot

changeset-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 32f390a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-server-sdk Patch

Not sure what this means? Click here to learn what changesets are.

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

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

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

Devin Review

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.

1 participant