API | Description |
Set the Cache directory for the playback engine. | |
Set the maximum cache size for the playback engine. | |
Set the Drm certificate provider environment. | |
Set the list of domain addresses for Tencent Cloud PlayCGI hosts. |
public static void setCacheFolderPath(String path)
Parameter Name | Type | Description |
path | String | Cache directory, Sdcard absolute path, null means caching is disabled. |
public static void setMaxCacheSize(int sizeMB)
Parameter Name | Type | Description |
sizeMB | int | Maximum cache size, unit: MB. |
public static void setDrmProvisionEnv(DrmProvisionEnv env)
Parameter Name | Type | Description |
env | DrmProvisionEnv | Set the Drm certificate provider environment (Note: Supported starting from version 11.2). Optional values: TXPlayerGlobalSetting.DrmProvisionEnv#DRM_PROVISION_ENV_COM, representing the use of google COM domain name certificate provider. TXPlayerGlobalSetting.DrmProvisionEnv#DRM_PROVISION_ENV_CN, representing the use of google CN domain name certificate provider. |
public static void setPlayCGIHosts(List<String> hosts)
Parameter Name | Type | Description |
hosts | List<String> | Domain address list, domain name format: playvideo.qcloud.com. |
フィードバック