LiteAVSDK_Player_Premium updates automatically.
Open your project with Android Studio and modify the build.gradle file as described below to complete the integration.

mavenCentral repository to the build.gradle in your project's root directory.repositories {mavenCentral()}
build.gradle in the app directory and add the LiteAVSDK_Player dependencies to dependencies.dependencies {// This configuration integrates the latest version of `LiteAVSDK_Player_Premium` by default.implementation 'com.tencent.liteav:LiteAVSDK_Player_Premium:latest.release'// To integrate an earlier version such as 10.8.0.29000, configure as follows:// implementation 'com.tencent.liteav:LiteAVSDK_Player_Premium:10.8.0.29000'}
defaultConfig, specify the CPU architecture to be used by the application. Currently, LiteAVSDK_Player supports armeabi, armeabi-v7a, and arm64-v8a.defaultConfig {ndk {abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"}}


build.gradle under your project’s root directory to specify the local path for the repository.
app/build.gradle.
implementation(name:'LiteAVSDK_Player_Premium_10.9.0.29003', ext:'aar')
defaultConfig of app/build.gradle, specify the CPU architecture to be used by the application. Currently, LiteAVSDK_Player supports armeabi, armeabi-v7a, and arm64-v8a.defaultConfig {ndk {abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"}}
LiteAVSDK_Player_Premium_xxx.zip (xxx is the version number) in the SDK directory. After decompression, you can get the libs directory, which contains the JAR file and folders of SO files as listed below:
armeabi-v7a directory and rename it armeabi.armeabi, armeabi-v7a, and arm64-v8a folders to the app/libs directory.
app/build.gradle.
dependencies {implementation fileTree(dir:'libs',include:['*.jar'])}
build.gradle under the project’s root directory to specify the local path for the repository.
app/build.gradle, add code that references the SO libraries.
defaultConfig of app/build.gradle, specify the CPU architecture to be used by the application (currently, LiteAVSDK supports armeabi, armeabi-v7a, and arm64-v8a). defaultConfig {ndk {abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"}}
AndroidManifest.xml. LiteAVSDK needs the following permissions:<!--network permission--><uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><!--storage--><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<?xml version="1.0" encoding="utf-8"?><network-security-config><domain-config cleartextTrafficPermitted="true"><domain includeSubdomains="true">127.0.0.1</domain></domain-config></network-security-config>
<?xml version="1.0" encoding="utf-8"?><manifest ... ><application android:networkSecurityConfig="@xml/network_security_config"... >...</application></manifest>
proguard-rules.pro file, add LiteAVSDK classes to the "do not obfuscate" list.-keep class com.tencent.** { *;}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback