There are two ways to upload VOD to VOD storage: pull or push.
Pull
Specify origin_url in Create video request. The video will be downloaded to the storage.
Push
Requires three steps:
- Send Create video request, don't specify origin_url parameter.
- Send Get URL and token to upload video request. To send it, use the video ID parameter from the previous request.
- 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),
- token.
Use your script and the data from the Get URL and token to upload video request to upload your videos to our server.