Receive Live Webhooks
Stream Live offers webhooks to notify your service when an Input connects, disconnects, or encounters an error with Stream Live.
Stream Live Notifications
Who is it for?Customers who are using Stream and want to receive webhooks with the status of their videos.
Other options / filtersYou can input Stream Live IDs to receive notifications only about those inputs. If left blank, you will receive a list for all inputs.
The following input states will fire notifications. You can toggle them on or off:
live_input.connected
live_input.disconnected
Stream subscription.
What should you do if you receive one?Stream notifications are entirely customizable by the customer. Action will depend on the customizations enabled.
- Log in to your Cloudflare account and click Notifications.
- From the Notifications page, click the Destinations tab.
- On the Destinations page under Webhooks, click Create.
- Enter the information for your webhook and click Save and Test.
- To create the notification, from the Notifications page, click the All Notifications tab.
- Next to Notifications, click Add.
- Under the list of products, locate Stream and click Select.
- Enter a name and optional description.
- Under Webhooks, click Add webhook and click your newly created webhook.
- Click Next.
- By default, you will receive webhook notifications for all Live Inputs. If you only wish to receive webhooks for certain inputs, enter a comma-delimited list of Input IDs in the text field.
- When you are done, click Create.
The event_type
property of the data object will either be live_input.connected
, live_input.disconnected
, or live_input.errored
.
If there are issues detected with the input, the event_type
will be live_input.errored
. Additional data will be under the live_input_errored
json key and will include a code
with one of the values listed below.
ERR_STORAGE_QUOTA_EXHAUSTED
– The account storage quota has been exceeded.ERR_GOP_OUT_OF_RANGE
– The input GOP size or keyframe interval is out of range.ERR_UNSUPPORTED_VIDEO_CODEC
– The input video codec is unsupported for the protocol used.ERR_UNSUPPORTED_AUDIO_CODEC
– The input audio codec is unsupported for the protocol used.