You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/stream/viewing-videos/download-videos.mdx
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,18 @@ sidebar:
5
5
order: 6
6
6
---
7
7
8
-
When you upload a video to Stream, it can be streamed using HLS/DASH. However, for use certain use-cases, you may want to download the MP4 or M4A file.
8
+
When you upload a video to Stream, it can be streamed using HLS/DASH. However, for certain use-cases, you may want to download the MP4 or M4A file.
9
9
For cases such as offline viewing, you may want to download the MP4 file. Whereas, for downstream tasks like AI summarization, if you want to extract only the audio, downloading an M4A file may be more useful.
10
10
11
11
## Generate downloadable MP4 files
12
12
13
-
> NOTE: The `/downloads` endpoint defaults to creating an MP4 download.
13
+
:::note
14
+
The `/downloads` endpoint defaults to creating an MP4 download.
15
+
:::
14
16
15
17
You can enable MP4 support on a per video basis by following the steps below:
16
18
17
-
1. Enable MP4 support by making a POST request to the `/downloads` or `/downloads/default` endpoint
19
+
1. Enable MP4 support by making a POST request to the `/downloads` or `/downloads/default` endpoint.
18
20
2. Save the MP4 URL provided by the response to the endpoint. This MP4 URL will become functional when the MP4 is ready in the next step.
19
21
3. Poll the `/downloads` endpoint until the `status` field is set to `ready` to inform you when the MP4 is available. You can now use the MP4 URL from step 2.
20
22
@@ -24,7 +26,7 @@ To get notified when a video is ready to view, refer to [Using webhooks](/stream
24
26
25
27
## Generate downloadable M4A files
26
28
27
-
To enable M4A support on a per video basis, we follow steps similar to that of generating an MP4 download, but instead send a POST request to the `/downloads/audio` endpoint.
29
+
To enable M4A support on a per video basis, follow steps similar to that of generating an MP4 download, but instead send a POST request to the `/downloads/audio` endpoint.
0 commit comments