#include "AliPrivateService.h"
◆ AVPPremiumBizType
◆ OnPremiumLicenseVerifyCallback
| - (typedef void(* OnPremiumLicenseVerifyCallback) (AVPPremiumBizType type, bool isValid, NSString *errorMsg)) |
OnPremiumLicenseVerifyCallback Function Pointer Type: Premium feature verification callback.
- Parameters
-
| type | Premium feature type. |
| isValid | Whether the verification passed. |
| errorMsg | Error message (returned when verification fails). @discussion This callback verifies whether a specific premium feature is accessible and returns the status and error message. |
◆ AVPPremiumBizType
| Enumerator |
|---|
| BizType_UNKNOW | |
| MediaLoader | |
| PreRenderOption | |
| PremiumAbrStrategy | |
| H265Adaptive | |
| DashSupport | |
| EXTSubtitle | |
| H266Support | |
◆ initKey:
| + (void) initKey: |
|
(NSString *) | datFile |
|
Initialize the credential for downloading resources.
- Parameters
-
| datFile | The path of the credential file. |
◆ initKeyWithData:
| + (void) initKeyWithData: |
|
(NSData *) | data |
|
Initialize the credential for downloading resources.
- Parameters
-
| data | The data of the credential file. |
◆ initLicenseService
| + (void) initLicenseService |
|
|
|
Initialize the license service.
- Parameters
-
| key | license key that user have |
| licensePath | local license file path |
| storageDir | download license file folder path |
◆ setOnPremiumLicenseVerifyCallback:
Sets the callback to get the Premium license verification.
The documentation for this class was generated from the following file: