Wowza Video webhook event reference documentation
Use webhooks to listen for and respond to events in your Wowza Video account.
Info
To receive event notifications, you have to enable webhooks for your account and create a webhook endpoint. See Receive event notifications with webhooks for more information.
Events
Wowza Video sends webhook events for transcoder and recording actions in
JSON format through a POST
request. The following sample webhook payload
is sent when a transcoder stops.
{
"version": 1.0,
"event": "stop.complete",
"event_id": "9be47e2a-b5ff-492a-a291-c7be79c060ba",
"event_time": 1588864470.813283,
"object_type": "transcoder",
"object_id": "pl3fff7q",
"object_data": {
"uptime_id": 7cb5yfnx
}
}
The envelope, or structure, of the webhook is the same for each event triggered, but the information provided in the envelope fields change depending on the event triggered and the object that triggered it.
Envelope key | Description |
---|---|
version |
The version of the Wowza webhook envelope. |
event |
The event triggered by the object. See the Transcoder and live stream and Recording tables for a complete list of events. |
event_id |
The unique ID that identifies the specific instance of this event. You can use this ID for internal tracking uses you might have or when you interact with Wowza support to troubleshoot issues. |
event_time |
The time, in Unix epoch format, that the event was triggered in Wowza's webhook system. |
object_type |
Type of object that triggered the event. Valid values are transcoder or recording . |
object_id |
The unique ID of the object that triggered the event. For transcoders, the object_id is the transcoder ID. For recordings, the object_id is the recording ID. You can use these IDs to locate the object that triggered the event in Wowza Video. |
object_data |
Data relevant to the object and event that triggered the webhook. |
Transcoder and live stream
Wowza Video sends the following events for transcoder actions. The
object_id
in the payload is the transcoder ID.
Info
These events are triggered for transcoder actions in both the live stream and transcoder workflows.
Event | Sample payload | Description |
---|---|---|
download.success | { |
Occurs when the transcoder successfully downloads the source file. Only applicable when a file is the source for a stream. |
download.failed | { |
Occurs when the URL in file_name returns a 404 error and the file can't be downloaded. Only applicable when a file is the source for a stream. |
start.requested | { |
Occurs when a request is made to start a transcoder. |
start.complete | { |
Occurs when the transcoder starts and is available. |
start.canceled | { |
Occurs when the transcoder cancels the startup process because of a failure. |
reset.requested | { |
Occurs when a request is made to reset a transcoder. |
stop.complete | { |
Occurs when the transcoder has stopped and is no longer available. |
audio.started | { |
Occurs when a running transcoder has started receiving audio. |
audio.stopped | { |
Occurs when a running transcoder has stopped receiving audio. |
video.started | { |
Occurs when a running transcoder has started receiving video. |
video.stopped | { |
Occurs when a running transcoder has stopped receiving video. |
Info
By default,
reference_id
is null
. Version 1.7 of the Wowza Video API introduces functionality
that lets you set a unique ID,
reference_id
,
associated with transcoder events and returned in transcoder webhook
payloads.
Sample
data_object
after setting
reference_id
:
"object_data": { "uptime_id": "jbfg6npg", "reference_id": "mySystemID_01" }
See POST/transcoders, PATCH/transcoders/[ID], POST/live_streams, and PATCH /live_streams/[ID] for more information.
Recording
Wowza Video sends the following events for recording actions. The
object_id
in the payload is the recording ID.
Event | Sample payload | Description |
---|---|---|
converting | { |
Occurs when a recording has been created and conversion to mp4 format begins. |
uploading | { |
Occurs when a recording is being uploaded to account storage. |
completed | { |
Occurs when a recording is complete and available in account storage. |
failed | { |
Occurs when a recording failed to be converted or uploaded. object_data includes a reason_code and a descriptive reason string for the failure. If the file couldn't be converted to an mp4, the reason_code can be either of the following:
If the mp4 is corrupt, the reason_code can be either of the following:
|
no_video | { |
Occurs when no video content is found for the recording. |
deleted | { |
Occurs when a recording is deleted.
Note: uptime_id is deprecated. Use transcoder_uptime_id instead. |