#import "AliPlayerGlobalSettings.h"
◆ CaheUrlHashCallback
- (typedef NSString *(* CaheUrlHashCallback) (NSString *url)) |
callback
- Parameters
-
- Returns
- the hash value . Ensure that each URL is different.
◆ clearCaches
◆ enableHttpDns:
+ (void) enableHttpDns: |
|
(BOOL) |
enable |
|
enable httpDNS.
Default is disabled.
- Parameters
-
◆ 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.
◆ enableLocalCache:maxBufferMemoryKB:localCacheDir:
+ (void) enableLocalCache: |
|
(bool) |
enable |
maxBufferMemoryKB: |
|
(int) |
maxBufferMemoryKB |
localCacheDir: |
|
(NSString *) |
localCacheDir |
|
|
| |
Enable local cache.
When enabled, it will be cached in local files.
- Parameters
-
enable | true: enables the local cache. false: disable. This function is disabled by default. |
maxBufferMemoryKB | Set the maximum memory size for a single source. Unit is KB |
localCacheDir | Directory of files cached locally, absolute path |
◆ 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
-
force | enable/disable |
fmt | the pcm format, only support s16 for now, signed integer with 16 bits |
channels | the pcm channels, available range 1~8 |
sample_rate | set the pcm sample rate, available range 1~48000 |
◆ setCacheFileClearConfig:maxCapacityMB:freeStorageMB:
+ (void) setCacheFileClearConfig: |
|
(int64_t) |
expireMin |
maxCapacityMB: |
|
(int64_t) |
maxCapacityMB |
freeStorageMB: |
|
(int64_t) |
freeStorageMB |
|
|
| |
Settings related to automatic clearing of local cache files.
- Parameters
-
expireMin | How long the cache expires: the unit is minute. The default value is 30 days. |
maxCapacityMB | maximum cache capacity: in megabytes. The default value is 20GB. If the total cache size exceeds this size, some caches are discarded one by one in the cacheItem granularity until they are smaller than or equal to the maximum cache capacity. |
freeStorageMB | Minimum free disk capacity: in megabytes. The default value is 0. If the current disk capacity is less than this value, the freeStorage will be eliminated one by one until the freeStorage is greater than or equal to this value or all caches are eliminated. |
◆ setCacheUrlHashCallback:
Sets the hash callback to load the URL.
If this parameter is not set, the SDK uses md5 algorithm.
◆ setDNSResolve:ip:
+ (void) setDNSResolve: |
|
(NSString *) |
host |
ip: |
|
(NSString *) |
ip |
|
|
| |
Set a DNS ip to resolve the host.
- Parameters
-
host | The host. Need to specify the port (http defualt port is 80,https default port is 443). E.g player.alicdn.com:443 |
ip | The 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
-
◆ setIpResolveType:
Set a IP type when resolve the host.
- Parameters
-
◆ setUseHttp2:
+ (void) setUseHttp2: |
|
(bool) |
use |
|
Set use http2 or not。
- Parameters
-
The documentation for this class was generated from the following file: