SVGA
and supports only SVGA
format files for special effect animations. Sports car | Cat | Car |
| | |
Loving Rocket | Snowy Castle | Deer With You |
| | |
Android/tceffectplayerkit
folder to your project, at the same level as the app folder.settings.gradle
file and add the following code:include ':tceffectplayerkit'
iOS/TCEffectPlayerKit
folder to your project, at the same level as the Podfile
folder.Podfile
and add the following code:pod 'TCEffectPlayerKit',:podspec => './TCEffectPlayerKit/TCEffectPlayerKit.podspec'
pod install
in the terminal to install the TCEffectPlayerKit dependency.LicenseUrl
and LicenseKey
, For more details, please send an email to: TRTC_helper@tencent.com.LicenseUrl
and LicenseKey
you have obtained:TCMediaXBase.getInstance().setLicense(context,"LicenseUrl", // Replace with your LicenseUrl"LicenseKey", // Replace with your LicenseKeynew ILicenseCallback() {@Overridepublic void onResult(int error, String message) {Log.i("TCMediaXBase", "setLicense result: " + error + " " + message);}});
didFinishLaunchingWithOptions
method of the AppDelegate
.//// AppDelegate.swift//import TCMediaXfunc application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {TCMediaXBase.getInstance().setDelegate(self)TCMediaXBase.getInstance().setLicenceURL("LicenseURL
", key: "LicenseKEY")return true}func onLicenseCheckCallback(_ errcode: Int32, withParam param: [AnyHashable : Any]) {debugPrint("[TCMediaXBase] setLicense result: errcode:\\(errcode), param:\\(param)")}
Was this page helpful?