are there any room events emitted when the egress ...
# ask-ai
f
are there any room events emitted when the egress starts?
t
Thanks for reaching out, Vladislav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
There are no room events emitted when egress starts in LiveKit. Room events are primarily focused on room state, participants, and tracks, and do not include egress-related events. However, LiveKit provides webhook events for egress lifecycle management. Specifically, the
egress_started
webhook event is triggered when egress begins. This event includes an
egress_info
field with details about the egress session. If you need to be notified when egress starts, you should use the webhook system rather than room events. The webhook events for egress include: •
egress_started
•
egress_updated
•
egress_ended
Sources: src/room/events.ts | lib/src/events.dart | livekit/livekit_egress.twirp.go | Webhooks | LiveKit Docs
f
is there a way to pause the egress recording or the rtc stream from the client to livekit?
t
Hey there! I totally understand you're looking to pause recordings or streams, but right now, LiveKit doesn't have that specific feature built-in. The current egress API lets you start, stop, update layouts, and manage stream endpoints, but pausing isn't an option just yet. The good news is that for RTC streams, LiveKit is pretty smart – it can automatically pause video during network hiccups while keeping your audio communication smooth. Just keep in mind this happens automatically on the server side, so it's not something you can control directly from the client. I'd love to hear more about what you're trying to achieve. If you share a bit more about your specific use case, I can help you find the best workaround or even help escalate this as a potential feature request. Let's figure this out together! Sources: Managing Video Quality During Network Congestion | Egress API | LiveKit Docs | livekit-protocol/livekit/protocol/egress.py