VOD Player global configuration.
◆ com::tencent::rtmp::TXPlayerGlobalSetting
class com::tencent::rtmp::TXPlayerGlobalSetting |
◆ getCacheFolderPath()
static String getCacheFolderPath |
( |
| ) |
|
|
inlinestatic |
This API is used to get the cache directory of the player engine.
- Returns
- The cache directory path
◆ getMaxCacheSize()
static int getMaxCacheSize |
( |
| ) |
|
|
inlinestatic |
This API is used to get the configured maximum cache size of the player engine.
- Returns
- The maximum cache size
◆ setCacheFolderPath()
static void setCacheFolderPath |
( |
String |
path | ) |
|
|
inlinestatic |
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
-
path | The absolute path of the cache directory. null indicates to disable caching. |
◆ setMaxCacheSize()
static void setMaxCacheSize |
( |
int |
sizeMB | ) |
|
|
inlinestatic |
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 |