You can select an upload method with different considerations such as the type of application that you develop and the business requirements for media asset upload. This topic classifies the upload methods provided by ApsaraVideo VOD based on development scenarios. You can learn about the supported and recommended upload methods for different programming languages and clients. This helps you find the references and select appropriate upload methods.
Server development
ApsaraVideo VOD provides server upload SDKs for media asset upload. You can also upload media files by using Object Storage Service (OSS) SDKs. Server upload SDKs encapsulate the logic for obtaining upload URLs and credentials and calling API operations of OSS to upload media files. You only need to complete simple configurations before you can upload media files. If the programming languages that you want to use are not supported by server upload SDKs, you can upload media files by using OSS SDKs.
Programming language | Supported upload method | Recommended upload method | References |
Java | Server upload SDK for Java OSS SDK for Java | Server upload SDK for Java | |
Python | Server upload SDK for Python OSS SDK for Python | Server upload SDK for Python | |
C or C++ | Server upload SDK for C or C++ OSS SDK for C or C++ | Server upload SDK for C or C++ | |
PHP | Server upload SDK for PHP OSS SDK for PHP | Server upload SDK for PHP | |
Other languages such as Go, Node.js, and .NET | OSS SDKs | OSS SDKs |
Client development
ApsaraVideo VOD provides client upload SDKs that encapsulate API operations of OSS. Select a client upload SDK based on your client type. For more information, see the following topics:
Other upload scenarios
Upload multiple media files at a time by using the URLs of source files. ApsaraVideo VOD provides the UploadMediaByURL operation that you can use to upload media files to a storage location of ApsaraVideo VOD by using the URLs that can be accessed over the Internet. This way, you do not need to download the media files to your servers or terminals and then upload the media files to ApsaraVideo VOD by using upload SDKs. For more information, see Upload multiple media files at a time by using the URLs of source files.
Upload media files by using OSS API. We recommend that you do not use this upload method due to its low upload efficiency and high error probability. If you use this upload method, you must call API operations of ApsaraVideo VOD to obtain upload URLs and credentials and then call API operations of OSS to upload media files. For more information, see Upload media files by using OSS API.