![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
#include "AliPrivateService.h"
Public Types | |
| typedef enum AliPrivateService::AVPPremiumBizType | AVPPremiumBizType |
| enum | AVPPremiumBizType : NSUInteger { BizType_UNKNOW = 0 , MediaLoader = 1 , PreRenderOption = 102 , PremiumAbrStrategy = 103 , H265Adaptive = 104 , DashSupport = 105 , EXTSubtitle = 108 , H266Support = 109 } |
| typedef void(* | OnPremiumLicenseVerifyCallback) (AVPPremiumBizType type, bool isValid, NSString *errorMsg) |
| OnPremiumLicenseVerifyCallback Function Pointer Type: Premium feature verification callback. | |
Class Methods | |
| (void) | + initKey: |
| Initialize the credential for downloading resources. | |
| (void) | + initKeyWithData: |
| Initialize the credential for downloading resources. | |
| (void) | + initLicenseService |
| Initialize the license service. | |
| (void) | + setOnPremiumLicenseVerifyCallback: |
| Sets the callback to get the Premium license verification. | |
| - (typedef enum AVPPremiumBizType) AliPrivateService: |
| - (typedef void(* OnPremiumLicenseVerifyCallback) (AVPPremiumBizType type, bool isValid, NSString *errorMsg)) |
OnPremiumLicenseVerifyCallback Function Pointer Type: Premium feature verification callback.
| 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. |
| - (enum 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.
|
| + (void) initKey: | (NSString *) | datFile |
Initialize the credential for downloading resources.
| datFile | The path of the credential file. |
| + (void) initKeyWithData: | (NSData *) | data |
Initialize the credential for downloading resources.
| data | The data of the credential file. |
| + (void) initLicenseService |
Initialize the license service.
| key | license key that user have |
| licensePath | local license file path |
| storageDir | download license file folder path |
| + (void) setOnPremiumLicenseVerifyCallback: | (OnPremiumLicenseVerifyCallback) | callback |
Sets the callback to get the Premium license verification.