If I call startRoomCompositeEgress after some dela...
# ask-ai
b
If I call startRoomCompositeEgress after some delay, would the recording only include the session from when the egress request was sent?
t
Thanks for reaching out, Muhammad. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — good question. Short answer: the recording starts when the
startRoomCompositeEgress
request is processed. It captures media from that point forward only and does not include any audio/video or events that happened before the egress was started. If you need to capture the whole session from the beginning, you’ll need to start egress earlier (or use a continuous recording approach that begins when the room is created). Sources: Universal Egress | LiveKit | Universal Egress | LiveKit, with interactive elements
b
How much delay is expected for webhook events, like room_started?
t
Good question — regarding webhook delays for events like `room_started`: • Delivery is push-based and intended to be near real-time, but there is no fixed guaranteed latency. • Retries use exponential backoff; network issues or retries can introduce additional delay. • Events preserve order; newer events won’t be delivered until older ones are delivered or abandoned. • Events older than
MaxAge
(default 30s) may be dropped, and per-resource queue depth (
MaxDepth
, default 200) can also affect delivery. • Webhook signing uses a JWT valid for 5 minutes. If you need tighter behavior, tell me your target latency and current observed delays (p95/p99) and I can suggest tuning or mitigation strategies. Sources: Best practices for managing webhook event streams | LiveKit, with interactive elements