SVGA
and supports only SVGA
format files for special effect animations. Sports car | Cat | Car |
| | |
Loving Rocket | Snowy Castle | Deer With You |
| | |
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.URL
and KEY
in the initialization code of the relevant business module, and configure the resources for the special effect player. For example, in iOS, you can set these in the 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?