Livestreaming Webhooks
You can use webhooks to notify your application when the status of a livestream changes, such as when it is live or offline.
Configure a webhook
As a first step, you'll have to set up a webhook to receive real-time updates for your livestream.
For the detailed steps on how to set up a webhook, see Set Up Webhooks .
Listen for the livestreaming event
You can listen to the livestreaming.statusUpdate
event.
This event is triggered when a livestream's status changes. Possible values for status are LIVE
and OFFLINE
.
- LIVE
- OFFLINE
{
"event": "livestreaming.statusUpdate",
"streamId": "d231d346-c422-43a6-a324-c0d65b79c8a7",
"status": "LIVE"
}
{
"event": "livestreaming.statusUpdate",
"streamId": "d231d346-c422-43a6-a324-c0d65b79c8a7",
"status": "OFFLINE"
}