All Products
Search
Document Center

:Overview

Last Updated:Dec 05, 2018

Relationship between VOD and OSS

VOD provides the massive, fast, and elastic upload capability based on the OSS storage. The VOD upload SDK can implement multipart uploads by encapsulating the OSS SDK. You can also directly use the OSS SDK to upload files. The upload procedure is as follows:

  1. Obtain the upload address and credential from VOD. The upload address is the OSS bucket address. This bucket is automatically allocated when you activate the service, which is specified by Region. This bucket is used as the input storage. The cross-domain settings, crossdomain.xml, and related permissions have already been configured. For more information, see Upload address and credential.

  2. Use Base64 to parse the upload address and credential. The UploadAddress field contains the upload OSS bucket address, and the UploadAuth field contains the temporary access credential.

  3. Call the OSS SDK to upload the original video files to the specified bucket. After the upload is complete, the video files are automatically transcoded. You can configure a callback to receive notifications such as the transcoding completion notification.

OSS upload modes

  • PutObject: It is applicable to the uploads of small files with the maximum size of 5 GB. Resumable uploading is not supported.

  • Multipart upload: It is applicable to the uploads of large files with the maximum size of 48.8 TB. Resumable uploading is supported.

Examples

For more information, see Use the OSS SDK to upload video files to VOD.