All Products
Search
Document Center

Apsara Video SDK:FAQ about licenses

Last Updated:Oct 11, 2024

This topic provides answers to some frequently asked questions (FAQ) about the registration, renewal, use, and modification of a license that is bound to an application.

How do I troubleshoot the error reported when I bind a license to an application?

If you fail to bind a license or an error is reported when you bind a license, perform the following operations to troubleshoot the error:

  • Check whether the license authorization configurations are correct in the ApsaraVideo VOD console.

    1. Log on to the ApsaraVideo VOD console.

    2. In the left-side navigation pane, choose SDK Management > My Licenses.

    3. Click the Application Management tab, find the application that you want to bind to the license, and then click Details to view application details.

    4. Check whether the following information is correct:

      • Basic information, such as the package name, bundle ID, and signature. We recommend that you do not bind a signature to a license.

      • License information, such as the SDK version, authorization type, expiration date, license status, and purchased value-added services.

        image

  • Check whether the license configurations in the application project are correct and consistent with the license information in the console.

    • Android: Check the AndroidManifest.xml configuration file.

      • License key: Check whether the value of com.aliyun.alivc_license.licensekey is the same as the license key displayed in the console.

      • License file: Check whether the value of com.aliyun.alivc_license.licensefile is the same as the path in which your license file is stored.

      • Package name: Check whether the value of applicationId in the build.gradle file is the same as the package name displayed in the console.

      • Package signature: If you bind a signature to a license, check whether the signature configured in the project is the same as that displayed in the console. You can run the following command to query your package signature: keytool -v -list -keystore your.keystore.

    • iOS: Check the Info.plist configuration file.

      • Bundle ID: Check whether the value of CFBundleIdentifier is the same as the bundle ID displayed in the console.

      • License key: Check whether the value of AlivcLicenseKey is the same as the license key displayed in the console.

      • License file: Check whether the value of AlivcLicenseFile is the same as the path of the license file in your IPA package.

What do I do if I am prompted that I do not have the required permissions?

Before you log on to the ApsaraVideo VOD console as a Resource Access Management (RAM) user, the RAM user must obtain permissions. For more information, see Authorize a RAM user to use the console. If the RAM user is not granted the required permissions, an error occurs.

  • If no permissions are granted to the RAM user, the error message shown in the following figure is returned when you access the ApsaraVideo VOD console as the RAM user.image.png

  • If the RAM user is not granted the permissions to view, pay for, or cancel orders in the Billing Management console, the error message shown in the following figure is returned.image.png

How do I apply for a free license?

You can apply to use a license free of charge for one year when you meet relevant requirements during the use of Alibaba Cloud media services such as ApsaraVideo VOD and ApsaraVideo Live. To apply for a free license, submit a request. The following table describes the SDK licenses that you can apply to use free of charge.

SDK

Edition

Supported service

Requirement

ApsaraVideo Player SDK

Standard Edition

No value-added features provided

  • ApsaraVideo Live

  • ApsaraVideo VOD

  • Intelligent Media Services (IMS)

N/A

Push SDK

Standard Edition or Interactive Edition

ApsaraVideo Live

N/A

Short video SDK

Basic Edition

  • ApsaraVideo VOD

  • IMS

The amount that you consumed for resource plans exceeds CNY 1,800.

Short video SDK

Standard Edition

  • ApsaraVideo VOD

  • IMS

The amount that you consumed for resource plans exceeds CNY 30,000.

Queen SDK

Basic Edition

  • ApsaraVideo Live

  • ApsaraVideo VOD

The amount that you consumed for resource plans exceeds CNY 99.

Do I need to update the license file and license key after I purchase and activate a new license?

  • We recommend that you update the license file. After you renew a license, the expiration date in the license file is updated. Integrating the updated license file helps improve the success rate of request authentication. In most cases, license updates do not affect the operation of your online application.

  • The license key is bound to the ID of your Alibaba Cloud account and remains unchanged.

How do I modify the ID of an application?

You can modify information about the application bound to a license in the ApsaraVideo VOD console.

Important
  • If you modify the package name or bundle ID, the application may fail to be authorized. In this case, you must download and reintegrate the license file into your application project. Proceed with caution.

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose SDK Management > My Licenses.

  3. Click the Application Management tab, find the application whose information you want to modify, and then click Edit.

  4. Modify the application information, such as the application name, platforms, MD5 signature of the Android application, and application identifiers.

  5. Click Modify to save the changes.

Am I able to modify the MD5 value of the signature for Android applications?

Unexpected issues may occur if you modify the MD5 value of the signature for Android applications. We recommend that you exercise caution when you perform this operation. If you want to integrate ApsaraVideo MediaBox SDK with an application, you must configure the license file and license key. If you modify existing authorization configurations such as the MD5 value of the signature, a failure may occur in SDK authorization verification for the published versions of the application. In this case, the application cannot work as expected. When you modify the MD5 value of the signature for an Android application, the following cases may occur:

  • If you change the MD5 value of the signature from A to B, the application reports an error to indicate that the MD5 value of the signature is A. In this case, we recommend that you create another application that has the same package name as the existing application and specify B as the MD5 value of the signature for the new application.

  • If you unbind the signature, the SDKs of earlier versions fail to pass the authorization verification. If the application uses one of the following SDK versions, we recommend that you do not unbind the signature:

    • ApsaraVideo MediaBox SDK V1.6.0 and earlier

    • ApsaraVideo Player SDK V5.5.1.0 and earlier

    • Push SDK V4.4.8 and earlier

    • Short video SDK V3.35.0 and earlier

How do I modify the versions, modules, or features of SDKs?

You cannot modify the SDK settings in the ApsaraVideo VOD or ApsaraVideo Live console. If you want to add SDK modules, modify SDK versions, or modify SDK features, submit a request.

What do I do if license verification fails and the "license authorization failed" or "license is invalid" error message appears?

Perform the following operations to troubleshoot the error:

  • Check whether the package name, signature for Android applications, and bundle ID for iOS applications that you specify when you obtain the license are correct.

    You can obtain the signature for Android applications by using one of the following methods:

    • Run the keytool -v -list -keystore your.keystore command to obtain the MD5 value of the signature.

    • To obtain the signature from Android Studio, click Gradle in the right-side navigation pane, find the corresponding application, and then choose Tasks > android > signingReport. You must convert the MD5 value to a value in lowercase and remove semicolons (;).

  • Check whether the license that you obtain matches the SDK features and edition that you use.

    For example, an error occurs in the following scenarios: You obtain a license only for Short video SDK when you use both Short video SDK and ApsaraVideo Player SDK. You obtain a license for Short video SDK Basic Edition when you use Professional Edition. You obtain a license for ApsaraVideo Player SDK Standard Edition when you use value-added features such as screen mirroring and on-device super resolution.

  • Check whether the license is correctly configured.

    Check whether the metadata configurations are correct on Android applications by performing the following operations: Check whether the <meta-data> node is created under the <application> element in the AndroidManifest.xml file and check whether the name of the <meta-data> node is correct.