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

VOD Player global configuration.


Data Structure Documentation

◆ com::tencent::rtmp::TXPlayerGlobalSetting

class com::tencent::rtmp::TXPlayerGlobalSetting

Static Public Member Functions

static void setCacheFolderPath (String path)
 
static void setMaxCacheSize (int sizeMB)
 
static String getCacheFolderPath ()
 
static int getMaxCacheSize ()
 

Member Function Documentation

◆ 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
pathThe 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
maxCacheSizeMBThe maximum cache size in MB