From 0a64598391190c40a210156f2f548fd0c0380076 Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Wed, 13 Nov 2024 15:06:03 +0100 Subject: [PATCH] Fix webhook event table formatting --- reference/create-and-manage-webhooks.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reference/create-and-manage-webhooks.md b/reference/create-and-manage-webhooks.md index 72eba8a..9b41a7e 100644 --- a/reference/create-and-manage-webhooks.md +++ b/reference/create-and-manage-webhooks.md @@ -16,14 +16,14 @@ Here’s how the webhook flow looks like, using `video.encoding` as an example: These are the available webhook events: -| Event | Triggers when... | -|-:------------------------------------------------------------------------------|-:----------------------------------------------------------------------------------------------------------------------------------------------------| -| [`live-stream.broadcast.started`](/reference/api/Webhooks#live-stream-started) | A live stream broadcast has started. | -| [`live-stream.broadcast.ended`](/reference/api/Webhooks#live-stream-ended) | A live stream broadcast has ended. | -| [`video.source.recorded`](/reference/api/Webhooks#video-source-recorded) | A live stream has been completed and the recording of the live stream is ready to be transcoded. This means that the video in queue for transcoding. | -| [`video.encoding.quality.completed`](/reference/api/Webhooks#video-encoding-completed) | A set quality version of encoding is complete for a video that you uploaded.

For each video, the MP4 asset is transcoded only once, hence you only receive one webhook notification for the MP4 asset, with the final source quality. The HLS asset's webhook notification triggers multiple times with each quality from the lowest 240p to the highest, up to 4k, based on the source you uploaded.

For example, if you upload a video in 720p quality, you receive 5 webhooks in total:

- **1 webhook** with 720p quality for the MP4 encoding
- **4 webhooks** for 240p, 360p, 480p, and 720p for the HLS encoding. | -| [`video.caption.generated`](/reference/api/Webhooks#video-caption-generated) | An automatic caption has been generated. | -| [`video.summary.generated`](/reference/api/Webhooks#video-summary-generated) | An automatic summary has been generated. | +| Event | Triggers when... | +|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [`live-stream.broadcast.started`](/reference/api/Webhooks#live-stream-started) | A live stream broadcast has started. | +| [`live-stream.broadcast.ended`](/reference/api/Webhooks#live-stream-ended) | A live stream broadcast has ended. | +| [`video.source.recorded`](/reference/api/Webhooks#video-source-recorded) | A live stream has been completed and the recording of the live stream is ready to be transcoded. This means that the video in queue for transcoding. | +| [`video.encoding.quality.completed`](/reference/api/Webhooks#video-encoding-completed) | A set quality version of encoding is complete for a video that you uploaded.

For each video, the MP4 asset is transcoded only once, hence you only receive one webhook notification for the MP4 asset, with the final source quality. The HLS asset's webhook notification triggers multiple times with each quality from the lowest 240p to the highest, up to 4k, based on the source you uploaded.

For example, if you upload a video in 720p quality, you receive 5 webhooks in total:

- **1 webhook** with 720p quality for the MP4 encoding
- **4 webhooks** for 240p, 360p, 480p, and 720p for the HLS encoding. | +| [`video.caption.generated`](/reference/api/Webhooks#video-caption-generated) | An automatic caption has been generated. | +| [`video.summary.generated`](/reference/api/Webhooks#video-summary-generated) | An automatic summary has been generated. | Check out the [API reference](/reference/api/Webhooks) for detailed descriptions of each webhook event's request headers and payloads.