The global configuration of the player engine.
◆ TXPlayerGlobalSetting
class TXPlayerGlobalSetting |
◆ 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
-
cacheFolder | The 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
-
maxCacheSizeMB | The maximum cache size in MB |