LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXPlayerGlobalSetting

Data Structures

class  TXPlayerGlobalSetting
 

Detailed Description

The global configuration of the player engine.


Data Structure Documentation

◆ TXPlayerGlobalSetting

class TXPlayerGlobalSetting
+ Inheritance diagram for TXPlayerGlobalSetting:

Class Methods

(void) + setCacheFolderPath:
 
(NSString *) + cacheFolderPath
 
(void) + setMaxCacheSize:
 
(NSInteger) + maxCacheSize
 

Method Documentation

◆ cacheFolderPath()

+ (NSString *) cacheFolderPath

This API is used to get the cache directory of the player engine.

Returns
The cache directory path

◆ maxCacheSize()

+ (NSInteger) maxCacheSize

This API is used to get the configured maximum cache size of the player engine.

Returns
The maximum cache size

◆ setCacheFolderPath:()

+ (void) setCacheFolderPath: (NSString *)  cacheFolder

This API is used to set the cache directory of the player engine. After setting, this directory will be first read and written during predownloading and player use.

Parameters
cacheFolderThe path of the cache directory. nil indicates to disable caching.

◆ setMaxCacheSize:()

+ (void) setMaxCacheSize: (NSInteger)  maxCacheSizeMB

This API is used to the maximum cache size of the player engine. After setting, the backend will clear files in the cache directory automatically according to the set value.

Parameters
maxCacheSizeMBThe maximum cache size in MB