tencent cloud

Extension SDK
Last updated:2026-02-11 14:54:42
Extension SDK
Last updated: 2026-02-11 14:54:42
A mini program's main SDK (mini_core) provides the basic runtime capabilities of the mini program. In addition to mini_core, the mini program SDK also offers the following extension components, which can be integrated to the superapp as needed.

QR code scanning extension SDK

Component description: If your mini program uses the QR code scanning capability, you need to add the following SDK to support the scanning feature.
SDK Version: Android SDK Updates
Integration method: Add the QR code scanning extension library dependency as follows.
Note: Only one of QBar or ML Kit scanning extension components can be used. Using both will disable the scanning functionality.
// QBar scanning extension component
implementation 'com.tencent.tcmpp.android:mini_extra_qrcode:${version}' // For version information, see Android SDK Updates
// ML Kit scanning extension component
implementation 'com.tencent.tcmpp.android:mini_extra_qrcode_mlkit:${version}' // For version information, see Android SDK Updates
implementation 'com.google.mlkit:barcode-scanning:17.0.2'
implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.1.0'
After the QR code scanning extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.scanCode
Opens the client’s QR code scanning interface
Required permissions:
Permission
Description
Camera
Camera permission is required for QR code scanning.
File read/write
File read/write permissions are required to recognize QR codes in local images.

Tencent Maps extension SDK

Component description: Developed for apps in the Chinese mainland. If your mini program uses the map capabilities, you need to add the following SDK.
SDK Version: Android SDK Updates
Tencent Maps Documentation:Tencent Maps Documentation
Integration method: Add the map extension library dependencies as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_map:${version}'// For version information, see Android SDK Updates
Implementation 'com.tencent.map:tencent-map-vector-SDK:5.9.0' // For version information, see Tencent Maps Documentation
implementation 'com.tencent.map:sdk-utilities:1.0.9'
implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.6.1.3'
You need to configure the project in the Tencent Location Service console and obtain the API key required to access the Tencent Maps service. For detailed steps, see Development Guide.
Once you've completed the above steps, you need to configure your API key in the Android project. Add the following meta-data in the AndroidManifest.xml file, and replace (YOUR_API_KEY) with your actual API key:
<application
...
<meta-data
android:name="TencentMapSDK"
android:value="(YOUR_API_KEY)" />
...
</application>
After the Tencent Maps extension SDK is added, the supported mini program APIs are as follows:
API name
Description
Map
Supports map APIs, including map display, location selection, POI query, offline map, and custom tile, etc.
Required permissions:
Permission
Description
Location
Required to use location services for displaying map locations.
The offline map feature can be customized by overriding the configData method in BaseMiniAppProxyImpl and intercepting calls where configType is MiniConfigData.TYPE_OFFLINE_MAP.
Example:
@Override
public MiniConfigData configData(Context context, int configType, JSONObject params) {
if (configType == MiniConfigData.TYPE_OFFLINE_MAP) {
MiniConfigData.OfflineMapConfig offlineMapConfig = new MiniConfigData.OfflineMapConfig();
// Set whether to enable the offline map feature. Default is false. It can be set to true based on business requirements.
offlineMapConfig.enabled = true;
return new MiniConfigData
.Builder()
.offlineMapConfig(offlineMapConfig)
.build();
}

return new MiniConfigData
.Builder()
.build();
}


Google Maps and Petal Maps extension SDKs

Component description: Developed for apps outside the Chinese mainland. If your mini app uses map capabilities, you need to add the following SDK.
SDK Version: Android SDK Updates
Petal Maps Documentation:Petal Maps Documentation
Integration method: Add the map extension library dependencies as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_google_map:${version}'// For version information, see Android SDK Updates
implementation 'com.google.android.gms:play-services-maps:18.1.0' // For version information, see Google Maps Documentation (public network access required)
implementation 'com.google.maps.android:android-maps-utils:2.3.0'
Since some Huawei devices do not support embedded Google Maps, the map may not be displayed. You can integrate Petal Map as a supplementary solution, and the mini program framework will prioritize the use of Petal Map on Huawei devices.
repositories {
maven {url 'https://developer.huawei.com/repo/'}
}
implementation 'com.tencent.tcmpp.android:mini_extra_huawei_map:${version}'// For version information, see Android SDK Updates
implementation 'com.huawei.hms:maps:6.9.0.300' // For version information, seePetal Maps Documentation
implementation 'com.huawei.hms:maps-basic:6.9.0.300'
implementation 'com.huawei.hms:site:6.5.1.300'
For Google Maps, you need to configure the Google Cloud project in the Google Cloud console and obtain the API key required to access the Google Maps service. For detailed steps, see Setup in the Cloud Console and Use API Keys.
Once you've completed the above steps, you need to configure your API key in the Android project. Add the following meta-data in the AndroidManifest.xml file, and replace (YOUR_API_KEY) with your actual API key:
<application
...
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="(YOUR_API_KEY)" />
...
</application>
For Petal Maps, you need to create a project in the Petal Maps console, activate the map and location services, and obtain the API key used to access the location service. For detailed steps, see Configuring App Information in AppGallery Connect. Then follow the guide of Integrating the HMS Core SDK to download the “agconnect-services.json” file to your project and configure the Huawei AGC plugin.
To use Huawei's location service properly, you need to add the following meta-data to the AndroidManifest.xml file and replace (YOUR_API_KEY) with your actual key:
<application
...
<meta-data
android:name="HuaweiApiKey"
android:value="(YOUR_API_KEY)" />
...
</application>
Note:
For security purposes, it is recommended to request a separate API key for location services.
After the Google Maps and Petal Maps extension SDKs are added, the supported mini program APIs are as follows:
API name
Description
Map
Supports map APIs and components, including map display, location selection, and POI query, etc.
Required permissions:
Permission
Description
Location
Required to use location services for displaying map locations.

Live streaming component extension SDK

Component description: If you need to use the live streaming components (live-player and live-pusher) for developing capabilities of live streaming push and pull, you need to add the following SDKs.
SDK Version: Android SDK Updates
Integration method: Add the live streaming component dependencies as follows.
// Live streaming component support library
implementation 'com.tencent.tcmpp.android:mini_extra_trtc_live:${version}'// For version information, see Android SDK Updates
// If you only need to integrate the live streaming component library, use the following lightweight dependency.
implementation 'com.tencent.liteav:LiteAVSDK_Live:latest.release' // For version information, see Tencent Cloud Documentation
// If you need to integrate the live streaming component library and player mobile premium version component library, use the following full dependency versions
implementation 'com.tencent.liteav:LiteAVSDK_Professional_Player_Premium:latest.release // For version information, see Tencent Cloud Documentati
In addition to adding the above dependencies, you need to override the following methods of implementing baseminiAppProxyImpl and provide the licenseURL and licenseKey required for the live streaming component. This is necessary to complete the initialization configuration for the live streaming component. If you do not configure the correct LicenseUrl and LicenseKey, the live streaming component will not function properly.
Note:
For the method of obtaining the LicenseUrl and LicenseKey, see Adding and Renewing a License.
@ProxyService(proxy = MiniAppProxy.class)
public class MiniAppProxyImpl extends BaseMiniAppProxyImpl {
@Override
public MiniConfigData configData(Context context, int configType, JSONObject params) {
if(configType == MiniConfigData.TYPE_LIVE) {
// Live streaming configuration
MiniConfigData.LiveConfig liveConfig = new MiniConfigData.LiveConfig();
// The following key and URL are used for demo only
liveConfig.licenseKey = "";
liveConfig.licenseUrl = "";

return new MiniConfigData
.Builder()
.liveConfig(liveConfig)
.build();
}

return null;
}
}
After the live streaming extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.createLivePusherContext
Creates the live streaming pusher context.
LivePusherContext
Supports LivePusherContext APIs.
wx.createLivePlayerContext
Creates a live streaming player context.
LivePlayerContext
Supports LivePlayerContext APIs.
live-pusher
Tag for live streaming push.
live-player
Tag for live streaming play.
Required permissions:
Permission
Description
Camera
-
Recording
-

LBS extension SDK

Component description: The LBS component provides capabilities related to location information, compass, accelerometer, positioning, and device motion.
SDK Version: Android SDK Updates
Integration method: Add the LBS extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_lbs:${version}'// For version information, see Android SDK Updates
After the LBS extension SDK is added, the supported mini program APIs are as follows:
API name
Description
Location information
Supports location information APIs.
Compass
Supports compass APIs.
Accelerometer
Supports accelerometer APIs.
Device motion
Supports device motion APIs.
Gyroscope
Supports gyroscope APIs.
Required permissions:
Permission
Description
Location
Required to obtain the location.

Bluetooth extension SDK

Component description: After the Bluetooth extension library is added, you can use Bluetooth APIs.
SDK Version: Android SDK Updates
Integration method: Add the Bluetooth extension library dependency as follows:
implementation 'com.tencent.tcmpp.android:mini_extra_bluetooth:${version}'// For version information, see Android SDK Updates
After the LBS extension SDK is added, the supported mini program APIs are as follows:
API
Description
Bluetooth - general-purpose
General-purpose Bluetooth API.
Bluetooth - Low Energy (BLE) peripheral device
Bluetooth Low Energy (BLE) peripheral devices APIs.
Bluetooth-Low Energy (BLE) central device
Central device APIs.
Bluetooth-beacon
Bluetooth beacon APIs.
Required permissions:
Permission
Description
Bluetooth
Required to operate the Bluetooth.
Location
Required to search the Bluetooth device.

NFC extension SDK

Component description: The NFC extension SDK can be added to enable NFC read/write capabilities.
SDK Version: Android SDK Updates
Integration method: Add the NFC extension SDK dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_nfc:${version}'// For version information, see Android SDK Updates
After the NFC extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.getNFCAdapter
Gets the NFC operation management instance object.
NFCAdapter
Supports NFCAdapter APIs.
NFC instances (NFCA, NFCB, NFCV, NFCF, NDEF, IsoDep, MifareUltralight, MifareClassic)
Supports NFC tag instance APIs.
Required permissions:
Permission
Description
NFC
Required to access NFC capabilities.

Biometric authentication extension SDK

Component description: Biometric authentication extension SDK provides capabilities related to device fingerprinting and face recognition.
SDK Version: Android SDK Updates
Integration method: Add the biometric authentication extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_soter:${version}'// For version information, see Android SDK Updates
After the biometric authentication extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.startSoterAuthentication
-
wx.checkIsSupportSoterAuthentication
-
wx.checkIsSoterEnrolledInDevice
-
Required permissions:
Permission
Description
Fingerprint access
Required to access fingerprint authentication.

Clipboard extension SDK

Component description: Provides clipboard access capability.
SDK Version: Android SDK Updates
Integration method: Add the extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_clipboard:${version}'// For version information, see Android SDK Updates
After the LBS extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.getClipboardData
-
wx.setClipboardData
-
Required permissions:
Permission
Description
Clipboard
Required to access and modify clipboard data.

Contacts extension SDK

Component description: Provides capabilities for accessing contacts.
SDK Version: Android SDK Updates
Integration method: Add the extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_contact:${version}'// For version information, see Android SDK Updates
After the contacts extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.addPhoneContact
Adds a contact.
wx.chooseContact
Selects a contact.
Required permissions:
Permission
Description
Contacts read/write permission
Required to access and write contacts information.

PDF extension SDK

Component description: Provides the capability to open PDF documents.
SDK Version: Android SDK Updates
Integration method: Add the extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_pdf:${version}'// For version information, see Android SDK Updates
After the PDF extension SDK is added, the supported mini program APIs are as follows:
API name
Description
wx.openDocument
Opens the document (PDF format only).

Media extension SDK

Component description: Provides default implementations for chooseMedia and previewMedia. Starting from version 1.5.9, a lite version has been added that uses the system image picker to eliminate the need for READ_MEDIA_IMAGES and READ_MEDIA_VIDEO permissions. The lite version and the non-lite version are mutually exclusive, and integrating both will result in compilation errors. Please choose the appropriate version based on your needs.
SDK Version: Android SDK Updates
Non-lite version:
The media selection feature in the non-lite version is implemented by the SDK and relies on system media selection permissions. It includes image and video preview features. However, Google Play has strict policies regarding media permissions. Unless necessary, it is recommended to choose the lite version. For details, see:Google Play's Photo and Video Permissions policy.
implementation 'com.tencent.tcmpp.android:mini_extra_media_support:${version}'// For version information, see Android SDK Updates
Lite version:
The lite version directly uses the system's media selection feature, with a UI and interactions consistent with the system, without requiring media permissions.
implementation 'com.tencent.tcmpp.android:mini_extra_media_support_lite:${version}'// For version information, see Android SDK Updates
Implement the MediaImageLoaderProxy, use a custom image loading implementation for image loading in the mini_extra_media_support library.
Note:
You can also implement the MediaChooseJsProxy to customize the logic for chooseMedia.
@ProxyService(proxy = MediaImageLoaderProxy.class)
public class CustomMediaImageLoaderProxy implements MediaImageLoaderProxy {
private GlideImageEngine glideImageEngine = new GlideImageEngine();

@Override
public ImageEngine getCustomImageEngine() {
return glideImageEngine;
}

static class GlideImageEngine implements ImageEngine {

@Override
public void loadPhoto(@NonNull Context context, @NonNull Uri uri, @NonNull ImageView imageView) {
Glide.with(context).load(uri).transition(withCrossFade()).into(imageView);

}

@Override
public void loadGifAsBitmap(@NonNull Context context, @NonNull Uri gifUri, @NonNull ImageView imageView) {
Glide.with(context).asBitmap().load(gifUri).into(imageView);

}

@Override
public void loadGif(@NonNull Context context, @NonNull Uri gifUri, @NonNull ImageView imageView) {
Glide.with(context).asGif().load(gifUri).transition(withCrossFade()).into(imageView);

Mini game extension SDK

Component description: Provides the implementation for the mini game engine.
SDK Version: Android SDK Updates
Integration method: Add the extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_mbengine:${version}'// For version information, see Android SDK Updates
After the extension library is added, mini games are supported. For mini game APIs, see API Overview.

Google ads extension SDK

Component description: Provides Google AdMob ad loading capability.
SDK Version: Android SDK Updates
Integration method: Add the extension library dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_admob:${version}'// For version information, see Android SDK Updates
Note:
This feature depends on AdMob. Please integrate it according to the official documentation first. For more information, see AdMob > Mobile Ads SDK (Android) > Get Started.
The mini program framework operates on a multi-task, multi-process architecture, with mini programs running in independent processes. Since AdMob does not support multi-process by default, the ad extension library has been adapted by modifying the declaration of AdMob's AdActivity. The details are as follows:
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:exported="false"
android:taskAffinity=":admob"
android:excludeFromRecents="true"
android:multiprocess="true"
android:theme="@android:style/Theme.Translucent"
tools:ignore="MissingClass" />
Modified field
Purpose and impact
Removable?
android:multiprocess="true"
Purpose:
Allows AdActivity to run in the calling process, enabling the mini program process to use AdMob ads.
Impact:
This attribute only affects the child process calling AdMob ads; it does not affect the main process.
No, removing it will prevent the mini programs and mini games from displaying ads properly.
android:taskAffinity=":AdMob"
Purpose:
AdMob adds the FLAG_ACTIVITY_NEW_TASK flag when a banner ad is clicked, causing AdActivity to be pushed into the superapp's main task stack instead of the mini program's task stack. As a result, when returning from the target page, users first return to the superapp’s main task stack and cannot navigate back to the mini program page properly. Adding this attribute allows AdActivity to be pushed onto an independent task stack, enabling normal navigation back to the mini program page.
Impact:
1. AdMob does not add FLAG_ACTIVITY_NEW_TASK when displaying rewarded video ads, so those ads are unaffected.
2. Banner ad target pages will have a separate task stack, which may affect the final return logic if users switch tasks through the recent tasks list.
Removable, but removing it will prevent normal navigation back to the mini program page from the banner ad target page.
android:excludeFromRecents="true"
Purpose:
Since AdActivity may only serve as a transitional page, it could display a black screen task in the recent tasks list when pushed onto a new task stack. This attribute prevents the display of that black screen task.
Impact:
If AdActivity is the root page of the task stack, it will not be shown in the recent tasks list, which may lead to activity leaks in some scenarios.
Removable, but removing it may result in a black screen task being displayed in the recent tasks list.

Player Mobile Premium Version extension SDK

Component description: To play DRM-encrypted videos, you must integrate this extension library into your superapp and configure the relevant properties within the mini program.
Note:
The default preloading size is 2 MB.
In scenarios where the video auto-plays, the default buffer size is set to 30 seconds multiplied by the video bitrate.
In scenarios where the video does not auto-play, the default preloading size of 2 MB is loaded first, followed by a default buffer size of 5 MB.
SDK Version: Android SDK Updates
Integration method: Add the player mobile premium version component dependency as follows.
// Player mobile premium version component support library
implementation 'com.tencent.tcmpp.android:mini_extra_video:${version}'// For version information, see Android SDK Updates
// If you only need to integrate the player mobile premium version component library, use the following lightweight dependency version.
implementation 'com.tencent.liteav:LiteAVSDK_Player_Premium:latest.release' // For version information, see Tencent Cloud Documentation
// If you need to integrate the player mobile premium version component library and live streaming component library, use the following full dependency version.
implementation 'com.tencent.liteav:LiteAVSDK_Professional_Player_Premium:latest.release // For version information, see Tencent Cloud Documentation
In addition to adding the above dependencies, you need to override the following methods of implementing baseminiAppProxyImpl and provide the licenseURL and licenseKey required for the player mobile premium version component. This is necessary to complete the initialization configuration for the player mobile premium version component. If you do not configure the correct LicenseUrl and LicenseKey, the player mobile premium version component will not function properly. (The configuration method for the player mobile premium version component is the same as that for the live streaming component.)
Note:
For the method of obtaining the LicenseUrl and LicenseKey, see Adding and Renewing a License. (Requires the purchase of a version supporting DRM capabilities)
@ProxyService(proxy = MiniAppProxy.class)
public class MiniAppProxyImpl extends BaseMiniAppProxyImpl {
@Override
public MiniConfigData configData(Context context, int configType, JSONObject params) {
if(configType == MiniConfigData.TYPE_LIVE) {
// Configure the player mobile premium version SDK for the video component
MiniConfigData.LiveConfig liveConfig = new MiniConfigData.LiveConfig();
// The following key and URL are used for demo only
liveConfig.licenseKey = "";
liveConfig.licenseUrl = "";

return new MiniConfigData
.Builder()
.liveConfig(liveConfig)
.build();
}

return null;
}
}
After adding the player mobile premium version extension SDK, the newly supported properties for the video component in mini programs are as follows:
API name
Description
is-drm
Whether it is a DRM-type video source.
provision-url
Certificate provider URL.
license-url
Decryption key URL.
Required permissions:
Network permissions, storage permissions
To configure obfuscation rules:
In the proguard-rules.pro file, add LiteAVSDK classes to the "do not obfuscate" list.
-keep class com.tencent.liteav.** { *; }
Network security configuration allows the app to send HTTP requests.
For security reasons, starting from Android P (Android 9.0), Google requires that all app requests use encrypted connections. The player SDK initiates a local server to proxy HTTP requests. If your app's targetSdkVersion is 28 or higher, you can set it in the network security configuration to enable sending HTTP requests to 127.0.0.1. Otherwise, during playback, a "java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted" error will occur, preventing video playback. The configuration steps are as follows:
Create a new file res/xml/network_security_config.xml in the project to set up the network security configuration.
<?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>
Add the following properties within the application tag in the AndroidManifest.xml file.
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application android:networkSecurityConfig="@xml/network_security_config"
... >
...
</application>
</manifest>

Network extension SDK

Component description: The network extension SDK provides TCP/UDP communication capabilities.
SDK Version: Android SDK Updates
Integration method: Add the network extension SDK dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_network:${version}'// For version information, see Android SDK Updates
After the network extension SDK is added, the supported mini program APIs are as follows:
API name
Description
TCP
Refer to APIs in TCP Communication
UDP
Refer to APIs in UDP Communication

Wi-Fi extension SDK

Component description: The Wi-Fi extension SDK provides Wi-Fi management capabilities.
SDK Version: Android SDK Updates
Integration method: Add the Wi-Fi extension SDK dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_wifi:${version}'// For version information, see Android SDK Updates
After the Wi-Fi extension SDK is added, the supported mini program APIs are as follows:
API name
Description
Wi-Fi
Refer to APIs in Wi-Fi
Permission
Description
Read and configure Wi-Fi status
Required to read and configure Wi-Fi status for managing Wi-Fi.
Read and configure network status
Required to read and configure network status for managing Wi-Fi.
Location
Required to access location in order to scan nearby Wi-Fi.

Calendar extension SDK

Component description: The calendar extension SDK provides calendar-related capabilities.
SDK Version: Android SDK Updates
Integration method: Add the calendar extension SDK dependency as follows.
implementation 'com.tencent.tcmpp.android:mini_extra_calendar:${version}'// For version information, see Android SDK Updates
After the calendar SDK is added, the supported mini program APIs are as follows:
API name
Description
addPhoneRepeatCalendar
Adds a recurring event to the system calendar.
addPhoneCalendar
Adds an event to the system calendar.
Required permissions:
Permission
Description
Calendar read/write
Required to add events to the calendar.

Short Drama extension SDK

Component description: To ensure a consistent short drama (skit) content experience within the SuperApp and reduce development costs for integrators, we provide a complete set of high-performance UI components and APIs for the Short Drama Player. The SDK handles UI rendering and interaction logic related to short drama playback, while the integrator (developer) focuses on their own business logic, such as content management and unlocking status.
SDK Version: Android SDK Updates
Integration method: Add the Short Drama Extension SDK dependencies as follows.
// Short Drama component support library
implementation 'com.tencent.tcmpp.android:mini_extra_playlet:${version}' // For version information, see Android SDK Updates
implementation "com.tencent.tcmpp.android:TUIDramaPlayer:1.0.3"
// If integrating both the Player Mobile Premium Version and Live Streaming components, use the full dependency version below:
implementation 'com.tencent.liteav:LiteAVSDK_Professional_Player_Premium:latest.release // For version information, see Tencent Cloud Documentation
In addition to adding the dependencies above, the following configurations are required:
1. Implementation of Initialization Configuration Override the following method in BaseMiniAppProxyImpl to provide the LicenseUrl and LicenseKey required by the short drama component. Failure to provide a valid License will result in the short drama component being unavailable.
Note:
For the method of obtaining the LicenseUrl and LicenseKey, see Adding and Renewing a License. (Requires the purchase of a version supporting DRM capabilities)

@ProxyService(proxy = MiniAppProxy.class)
public class MiniAppProxyImpl extends BaseMiniAppProxyImpl {
@Override
public MiniConfigData configData(Context context, int configType, JSONObject params) {
if (configType == MiniConfigData.TYPE_PLAYLET) {
// Short drama configuration
MiniConfigData.PlayletConfig playletConfig = new MiniConfigData.PlayletConfig();
// The following Key and URL are for demo purposes only
playletConfig.licenseKey = "YOUR_LICENSE_KEY";
playletConfig.licenseUrl = "YOUR_LICENSE_URL";

return new MiniConfigData
.Builder()
.playletConfig(playletConfig)
.build();
}

return new MiniConfigData
.Builder()
.build();
}
}
2. Configure Obfuscation Policy (ProGuard) Add the following rules to your ProGuard configuration. If these are not configured, the short drama component will not function correctly.
-keep class com.tencent.liteav.** { *; }
-keep class com.tencent.live2.** { *; }
-keep class com.tencent.rtmp.** { *; }
-keep class com.tencent.thumbplayer.** { *; }
-keep class com.tencent.trtc.** { *; }
-keep class com.tencent.ugc.** { *; }
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback