AliyunVideoLicenseManager

@interface AliyunVideoLicenseManager : NSObject

* The manager for video license

  • * The state of init

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) BOOL HasInitialized;
  • * The Info of current license

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) AliyunVideoLicense *CurrentLicense;
  • * The Event notify of VideoLicense

    Declaration

    Objective-C

    @property (class, nonatomic) id<AliyunVideoLicenseEventDelegate> EventDelegate;
  • * Setup

    please set AlivcLicenseKey and AlivcLicenseFile into Info.plist of project

    • Set your LicenseKey for AlivcLicenseKey
    • Set your path(relatively mainBundle) of LicenseFile for AlivcLicenseFile; eg: you put your LicenseFile that name “license.crt” in mainBundle, so you need set “license.crt” for AlivcLicenseFile

    Please reference the document: https://help.aliyun.com/document_detail/274386.html for get your LicenseKey and LicenseFile

    Declaration

    Objective-C

    + (NSError *)Setup;
  • * Refresh license

    Declaration

    Objective-C

    + (void)Refresh:(void (^)(AliyunVideoLicenseRefreshCode))callback;

    Parameters

    callback

    The callback of refresh finish

  • Undocumented

    Declaration

    Objective-C

    + (AliyunVideoLicenseResultCode) Check;
  • * Check the setting for license, help you check your all setting for license is right.

    Declaration

    Objective-C

    + (void)CheckSetting:(void (^)(NSError *))callback;

    Parameters

    callback

    The callback of check