AliyunPlayer  v5.4.1
Aliyun Player API Reference Manual for iOS Platforms
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties
AliPlayerGlobalSettings Class Reference
Inheritance diagram for AliPlayerGlobalSettings:

Class Methods

(void) + enableHWAduioTempo:
 enable/disable hardware audio tempo, player will use soft ware tempo filter when disabled, and it will affect the pcm data that from audio rending callback, it only can be reset in the same thread, enable by default. More...
 
(void) + forceAudioRendingFormat:fmt:channels:sample_rate:
 force audio render use the particular format,the value will no effect when the format not supported by device,the out range value will be ignored,and use the default value; and it will affect the pcm data that from audio rending callback, it only can be reset in the same thread, disabled by default. More...
 
(void) + setDNSResolve:ip:
 Set a DNS ip to resolve the host. More...
 
(void) + setFairPlayCertID:
 Set the .fairPlay certID, update the certID must use the thread first set. More...
 
(void) + setIpResolveType:
 Set a IP type when resolve the host. More...
 

Method Documentation

◆ enableHWAduioTempo:

+ (void) enableHWAduioTempo: (bool)  enable

enable/disable hardware audio tempo, player will use soft ware tempo filter when disabled, and it will affect the pcm data that from audio rending callback, it only can be reset in the same thread, enable by default.

◆ forceAudioRendingFormat:fmt:channels:sample_rate:

+ (void) forceAudioRendingFormat: (bool)  force
fmt: (NSString *)  fmt
channels: (int)  channels
sample_rate: (int)  sample_rate 

force audio render use the particular format,the value will no effect when the format not supported by device,the out range value will be ignored,and use the default value; and it will affect the pcm data that from audio rending callback, it only can be reset in the same thread, disabled by default.

Parameters
forceenable/disable
fmtthe pcm format, only support s16 for now, signed integer with 16 bits
channelsthe pcm channels, available range 1~8
sample_rateset the pcm sample rate, available range 1~48000

◆ setDNSResolve:ip:

+ (void) setDNSResolve: (NSString *)  host
ip: (NSString *)  ip 

Set a DNS ip to resolve the host.

Parameters
hostThe host. Need to specify the port (http defualt port is 80,https default port is 443). E.g player.alicdn.com:443
ipThe ip address, set as empty string to clear the setting.

◆ setFairPlayCertID:

+ (void) setFairPlayCertID: (NSString *)  certID

Set the .fairPlay certID, update the certID must use the thread first set.

Parameters
typeThe IP type.

◆ setIpResolveType:

+ (void) setIpResolveType: (AVPIpResolveType type

Set a IP type when resolve the host.

Parameters
typeThe IP type.

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