Initialize short video SDK for Android

更新时间:
复制 MD 格式

AlivcSdkCore is the core class and entry point of the short video SDK for Android. It provides access to all SDK features and debugging options.

Before you begin

Complete the following operations before you initialize the short video SDK:

Initialization

Initialize the short video SDK before you use it. For more information, see AlivcSdkCore.

// Initialize the SDK.
bool result = AlivcSdkCore.register(Context context)
// If false is returned, the license failed to be initialized. Check whether the configurations of the license are correct.

Important

The short video SDK cannot be used if the license is disabled, invalid, or expired.

Logging

The short video SDK provides the AlivcLogLevel class for generating logs at different levels. You can filter log entries by using the tag AliYunLog.

// Enable the logging feature.
AlivcSdkCore.setLogLevel(AlivcLogLevel level)

// Set the log level.
AlivcSdkCore.setDebugLoggerLevel(AlivcDebugLoggerLevel level)