Skip to content

Commit a82ff5f

Browse files
authored
Stream: Increase suggested chunk size in examples (#477)
1 parent 3d2a3d7 commit a82ff5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

products/stream/src/content/uploading-videos/upload-video-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pip install -U tus.py
104104
```
105105

106106
```bash
107-
tus-upload --chunk-size 5242880 --header Authorization "Bearer $TOKEN" $PATH_TO_VIDEO https://api.cloudflare.com/client/v4/accounts/$ACCOUNT/stream
107+
tus-upload --chunk-size 52428800 --header Authorization "Bearer $TOKEN" $PATH_TO_VIDEO https://api.cloudflare.com/client/v4/accounts/$ACCOUNT/stream
108108
```
109109

110110
In the beginning of the response from tus, you’ll see the endpoint for getting information about your newly uploaded video.
@@ -146,7 +146,7 @@ func main() {
146146
headers.Add("Authorization", "Bearer $TOKEN")
147147

148148
config := &tus.Config{
149-
ChunkSize: 5 * 1024 * 1024, // Cloudflare Stream requires a minimum chunk size of 5MB.
149+
ChunkSize: 50 * 1024 * 1024, // Required a minimum chunk size of 5MB, here we use 50MB.
150150
Resume: false,
151151
OverridePatchMethod: false,
152152
Store: nil,
@@ -209,7 +209,7 @@ var options = {
209209
headers: {
210210
'Authorization': 'Bearer $TOKEN',
211211
},
212-
chunkSize: 5 * 1024 * 1024, // Cloudflare Stream requires a minimum chunk size of 5MB.
212+
chunkSize: 50 * 1024 * 1024, // Required a minimum chunk size of 5MB, here we use 50MB.
213213
resume: true,
214214
metadata: {
215215
filename: "test.mp4",

0 commit comments

Comments
 (0)