All Products
Search
Document Center

ApsaraVideo VOD:Installation

Last Updated:Jan 29, 2026

This topic provides sample code for installing the Java SDK and adding JAR dependencies.

Prerequisites

JDK 6 or later is required.

Install the SDK

Note
  • The examples in this topic use SDK V1.0. To install SDK V2.0, see the installation guide on the Alibaba Cloud OpenAPI Portal. For more information, see ApsaraVideo VOD SDK (V2.0).

  • You can download the latest versions of the SDK core library and VOD library from Server-side SDKs.

  • aliyun-java-sdk-core is the core library. The version must be 4.4.5 or later.

  • aliyun-java-sdk-vod is the VOD library. If new APIs or features are not available in your current version, update the SDK to the latest version. For information about versions and changes in each version, see ApsaraVideo VOD SDK Version History. On the Version History page, switch to the required SDK version, select a programming language, and click View Release Report to view the detailed changes for that version.

  • aliyun-java-sdk-kms is a dependency for Key Management Service (KMS). If you use the HLS encryption feature of ApsaraVideo VOD with VOD SDK 2.16.9 or an earlier version, you must add this KMS dependency. Otherwise, this dependency is not required.

  • The version numbers in the following example are for reference only. Replace them with the actual version numbers that you require.

Add JAR dependencies:

<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>aliyun-java-sdk-core</artifactId>
  <version>4.6.0</version>
</dependency>
<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>aliyun-java-sdk-vod</artifactId>
  <version>2.16.10</version>
</dependency>
<dependency>
  <groupId>com.alibaba</groupId>
  <artifactId>fastjson</artifactId>
  <version>1.2.83</version>
</dependency>
<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>aliyun-java-sdk-kms</artifactId>
  <version>2.10.1</version>
</dependency>