#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 | Unknown business type.
|
| MediaLoader | Media loader feature.
|
| PreRenderOption | Pre-render option feature.
|
| PremiumAbrStrategy | Premium adaptive bitrate strategy.
|
| H265Adaptive | H.265 adaptive feature.
|
| DashSupport | DASH protocol support.
|
| EXTSubtitle | Extended subtitle feature.
|
| H266Support | H.266 codec support.
|
◆ 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: