Egress 120s Stop

Hello LiveKit Team,

We’re validating a recording and livestreaming system using LiveKit Cloud on the Build plan.

Before conducting a short production recording test, we need to confirm whether LiveKit Egress supports a guaranteed server-side recording cutoff of 120 seconds or less, even if the browser disconnects, the application crashes, or the stop request fails.

Can this be enforced on the Build plan without upgrading or incurring additional charges?

If supported, which API parameter or configuration should we use?

Thank you!

Hi, no, there is no guaranteed server-side recording cutoff. You can’t specify a duration limit, and the only practical limit is the Quotas and limits | LiveKit Documentation

To achieve a 120 second recording, you would need to call StopEgress() and handle any failure condition.

If you are worried about a long-lived egress, the expected behaviour is for the the Egress to stop whenever its input also stops - for example a track egress will stop when the track is unpublished, or a participant egress will stop when the participant leaves.

What is the use case for the 120 second limit?