Repository navigation
Add v2 auto-egress config and egress request builders - #2018
frostbyte73 wants to merge 4 commits into
Conversation
RoomEgress and RoomInternal can now carry v2-shaped auto-egress config whose participant and track configs take the same encoding, outputs, storage and webhooks as a normal egress request, and egress.Auto*Request build egress requests from either v1 or v2 config so livekit and cloud share one translation.
🦋 Changeset detectedLatest commit: 97b9156 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
# Conflicts: # livekit/livekit_egress.pb.go # livekit/livekit_egress.twirp.go # livekit/livekit_internal.pb.go
| return req | ||
| } | ||
|
|
||
| if v1 := internal.GetParticipantEgress(); v1 != nil { |
There was a problem hiding this comment.
Does AutoParticipantRequest mean to change file naming for v1 participant configs?
Once v1 AutoParticipantEgress becomes a Media source with ParticipantVideo, egress only sets the identity and {publisher_identity} for RequestTypeParticipant (SDKSource.joinRoom). If I'm reading it right:
rec/{publisher_identity}-{time}.mp4would no longer be replaced, so the path keeps the literal{publisher_identity}- an empty filepath would name the file
<room_name>-<time>instead of<identity>-<time>. Would two participants who start publishing in the same second overwrite each other?
I reproduced the first one with an egress integration case: a Media ParticipantVideo request with {publisher_identity} in the filename fails verifyFile.
Should egress set the identity for Media ParticipantVideo before callers switch, or should v1 participant config stay on StartEgressRequest_Participant?
There was a problem hiding this comment.
Thanks, v1 looks good now. One follow-up for the v2 configs, since they still go through Media:
participant_egress:{publisher_identity}isn't replaced for MediaParticipantVideo, and an empty filepath names the file<room_name>-<time>track_egress: withencodingunset (default transcode),{track_id}is only replaced for passthrough, so the file is also<room_name>-<time>. v1 avoids this viatrackFilepath
So with default settings, participants or tracks that start in the same second would write to the same path. Should egress set the identity / track ID templates for these Media requests, or should the builders put the identity / track ID into the v2 output paths?
🤖 Generated with Claude Code
There was a problem hiding this comment.
Egress should set them
Translating v1 room, participant and track configs into v2 requests changed file naming, usage classification and the webhook request shape for customers who never opted in. v1 config now builds its existing v1 request type and only v2 config builds a StartEgressRequest. capture_data is rejected unless the outputs are a single MCAP file, since egress only accepts data capture that way.
|
@milos-lk removed all the conversions |
RoomEgress and RoomInternal can now carry v2-shaped auto-egress config
whose participant and track configs take the same encoding, outputs,
storage and webhooks as a normal egress request, and egress.Auto*Request
build egress requests from either v1 or v2 config so livekit and cloud
share one translation.