enableAutoRemoveCache
Sets whether to automatically delete cached media files.
int enableAutoRemoveCache(boolean enable);
When the number or size of cached media files exceeds the set limit, enabling this feature allows the SDK to automatically delete the least recently used cached files.
Parameters
- enable
- Whether to enable automatic deletion of cached media files by the SDK:
- true: Automatically delete cached media files.
- false: (Default) Do not automatically delete cached media files.
Return Values
- 0: Success.
- < 0: Failure. See MediaPlayerReason.