Integration Tencent Short Video SDK Record#
There is a requirement to record a video and upload it, visible on the server. Finally, I integrated the Tencent SDK in a roundabout way, and I will record it here.
SDK Selection#
First is the SDK selection, for iOS it is Tencent's Short Video SDK.
SDK Integration#
Then, SDK integration, following the steps in the link above, integrate the TXLiteAVSDK_UGC.framework
and the dependent system libraries into the project, then add plist permissions, and add the UGCKit module. However, I encountered a compilation failure.
For my project, it was due to a conflict with the WCDB library. The private library used in the project encapsulated WCDB and used it as a static library. It conflicted with the SDK mentioned above, so it needed to be set separately. After modifying it for a long time, after the compilation passed, I found that WCDB initialization failed. After investigating for a long time, the final solution was:
In Build Settings, under Other Linker Flags, set:
-force_load
"${PODS_CONFIGURATION_BUILD_DIR}/WCDBOptimizedSQLCipher/libWCDBOptimizedSQLCipher.a"
As shown below:
Then, I found that after integrating according to the above steps, the installation package size increased from 27MB to 156MB... After rechecking, I found that the entire UGCKit module does not need to be added because our recording does not use the classes encapsulated in UGCKit, but rather custom classes that use the functionality of TXLiteAVSDK_UGC.framework
. After removing the entire UGCKit module, the size returned to around 27MB.