AliyunVideoLicenseManager
@interface AliyunVideoLicenseManager : NSObject
短视频证书管理类
-
当前是否已经初始化成功
Declaration
Objective-C
@property (class, nonatomic, readonly) BOOL HasInitialized;
-
当前的证书信息
Declaration
Objective-C
@property (class, nonatomic, readonly) AliyunVideoLicense *CurrentLicense;
-
短视频证书相关事件通知
Declaration
Objective-C
@property (class, nonatomic) id<AliyunVideoLicenseEventDelegate> EventDelegate;
-
初始化
请在工程的Info.plist中增加AlivcLicenseKey和AlivcLicenseFile字段
- 在AlivcLicenseKey中填入您的LicenseKey
- 在AlivcLicenseFile中填入您的LicenseFile路径(相对于mainBundle);例如您的LicenseFile为"license.crt"放到mainBundle下,就填入license.crt
LicenseKey和LicenseFile的获取请参考文档:https://help.aliyun.com/document_detail/274386.html
Declaration
Objective-C
+ (NSError *)Setup;
-
更新证书
Declaration
Objective-C
+ (void)Refresh:(void (^)(AliyunVideoLicenseRefreshCode))callback;
Parameters
callback
更新完成回调
-
验证证书
Check the license
Declaration
Objective-C
+ (AliyunVideoLicenseResultCode)Check;
Return Value
the result code of license check
-
检查配置,可以帮助您检查license相关配置是否正确
Declaration
Objective-C
+ (void)CheckSetting:(void (^)(NSError *))callback;
Parameters
callback
检查完成回调