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:
-
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
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.
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)