File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
products/stream/src/content/uploading-videos Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
110110In 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" ,
You can’t perform that action at this time.
0 commit comments