There are two ways to upload VOD to VOD storage: pull or push.
Specify origin_url in Create video request. The video will be downloaded to the storage.
Requires three steps:
1. Send Create video request, don't specify origin_url parameter.
2. Send Get URL and token to upload video request. To send it, use the video ID parameter from the previous request.
Note. Token is valid for 5 minutes. This is enough because token is involved only in request «Submit video for download». As soon as the video is sent, the token is no longer needed, and processing occurs without it.
3. Write a script using the tus standard: https://tus.io/. Here is a script example: https://github.com/tus/tus-js-client.
Keep in mind that the following metadata must be specified for the uploading process to go smoothly:
- video name (filename),
- client ID (client_id),
- video ID (video_id),
Use your script and the data from the Get URL and token to upload video request to upload your videos to our server.