AliyunPlayer v7.6.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AliPrivateService Class Reference

#include "AliPrivateService.h"

Inheritance diagram for AliPrivateService:

Public Types

enum  AVPPremiumBizType : NSUInteger {
  BizType_UNKNOW = 0 , MediaLoader = 1 , PreRenderOption = 102 , PremiumAbrStrategy = 103 ,
  H265Adaptive = 104 , DashSupport = 105 , EXTSubtitle = 108 , H266Support = 109
}
 
typedef enum AliPrivateService::AVPPremiumBizType AVPPremiumBizType
 
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.
 

Member Typedef Documentation

◆ AVPPremiumBizType

- (typedef enum AVPPremiumBizType) AliPrivateService:

◆ OnPremiumLicenseVerifyCallback

- (typedef void(* OnPremiumLicenseVerifyCallback) (AVPPremiumBizType type, bool isValid, NSString *errorMsg))

OnPremiumLicenseVerifyCallback Function Pointer Type: Premium feature verification callback.

Parameters
typePremium feature type.
isValidWhether the verification passed.
errorMsgError message (returned when verification fails). @discussion This callback verifies whether a specific premium feature is accessible and returns the status and error message.

Member Enumeration Documentation

◆ AVPPremiumBizType

- (enum AVPPremiumBizType) :
Enumerator
BizType_UNKNOW 
MediaLoader 
PreRenderOption 
PremiumAbrStrategy 
H265Adaptive 
DashSupport 
EXTSubtitle 
H266Support 

Method Documentation

◆ initKey:

+ (void) initKey: (NSString *) datFile

Initialize the credential for downloading resources.

Parameters
datFileThe path of the credential file.

◆ initKeyWithData:

+ (void) initKeyWithData: (NSData *) data

Initialize the credential for downloading resources.

Parameters
dataThe data of the credential file.

◆ initLicenseService

+ (void) initLicenseService

Initialize the license service.

Parameters
keylicense key that user have
licensePathlocal license file path
storageDirdownload license file folder path

◆ setOnPremiumLicenseVerifyCallback:

+ (void) setOnPremiumLicenseVerifyCallback: (OnPremiumLicenseVerifyCallback) callback

Sets the callback to get the Premium license verification.


The documentation for this class was generated from the following file: