AliyunPlayer v7.10.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

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.

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 

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.

Deprecated
This check is deprecated H266 feature recommend using plugin way, refer to document: H.266 decode plugin
See also
AliPlayerGlobalSettings::enableCodecPlugin

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: