The core class of the short video SDK for Android is AlivcSdkCore. AlivcSdkCore serves as the entry point for all features of the SDK and allows you to debug features.
Before you begin
Make sure that the following operations are complete before you initialize the short video SDK for Android:
Obtain and activate the license of the short video SDK for Android. For more information, see Obtain and use a license of the short video SDK.
Integrate the short video SDK for Android. For the short video SDK V3.29.0 or later, you need to configure the license before you register the SDK. For more information, see Integrate the short video SDK for Android.
Initialization
You must perform the following operations to initialize the short video SDK for Android before you use the SDK. 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.
The short video SDK cannot be used if the license is disabled, invalid, or expired.
Logging
The short video SDK for Android provides the AlivcLogLevel class that allows you to generate different levels of logs. In a log file, you can filter the log content by using tag : AliYunLog.
// Enable the logging feature.
AlivcSdkCore.setLogLevel(AlivcLogLevel level)
// Set the log level.
AlivcSdkCore.setDebugLoggerLevel(AlivcDebugLoggerLevel level)