This topic describes how to integrate Queen SDK for macOS to implement retouching effects.
Prerequisites
A development environment is set up. The following table describes the requirements for the development environment.
Item | Requirement |
macOS High Sierra | macOS High Sierra 10.13 or later. |
Xcode | Xcode 9.0 or later. To download Xcode, visit Mac App Store. |
Integration method
Only local integration is supported.
Download and decompress the sample project. Obtain the queen.framework file.
Open Xcode and select your project target. On the General tab, add the framework file in the Frameworks, Libraries, and Embedded Content section and set Embed to Embed & Sign for the framework.
Configure the license
Make sure that you have obtained a license of Queen SDK in advance. For more information, see Obtain a license of Queen SDK. After you obtain a license, perform the following steps to configure the LicenseKey and LicenseFile in the project:
If you integrate Queen SDK of ApsaraVideo Live and the short video SDK of ApsaraVideo VOD at the same time, the two SDKs have the same LicenseKey and LicenseFile. You need to only configure the LicenseKey and LicenseFile once. Take note that the latest license file must be used.
If the SDK that you purchase is updated or needs to be renewed, you must also update the license file. Perform the following steps to update the license file:
Send an email to obtain the latest license file. For more information, see Obtain a license of Queen SDK.
After you obtain the latest license file, perform the steps to configure the license.
Import the license file to the app project and add the following keys to the Info.plist file:
AlivcLicenseKey
: The value of this key is the value of the LicenseKey.Example:
MoCTfuQ391Z01****8f8745e23c8a457a8ff8d5faedc1****
.AlivcLicenseFile
: The value of this key is the path of the license file that is relative to the mainBundle. Example:AliVideoCert_164933454****.crt
.