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.

To learn more, read our guide on live streaming with Daily.

live-streaming-started

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

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. state: "connected"
  • Connection with the RTMP server is interrupted. state: "interrupted"
  • Connection with the RTMP server is restored. state: "connected"

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.

live-streaming-stopped

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.

live-streaming-error