Live streaming events
If you plan to live stream with Daily, you might be interested in monitoring the status of those streams. Daily's live streaming events help you monitor and respond accordingly.
If you have live streaming enabled, you can listen for
live-streaming-started to change the UI when a live stream begins, for example. The event payload optionally includes the streaming layout:
live-streaming-updated is triggered in the following circumstances, with a connection
state property in the payload:
- The first video frame is published to the RTMP servers.
- Connection with the RTMP server is interrupted.
- Connection with the RTMP server is restored.
If live streaming was started with an
endpoints argument, the
live-streaming-updated event payload will also include an
endpoint property whose value is the name of the associated streaming endpoint.
If you're enabling live streaming on a call, you can listen for
live-streaming-stopped to change the UI when a live stream ends, for example.