public interface IMediaPlayerCacheManager
Modifier and Type | Method and Description |
---|---|
int |
enableAutoRemoveCache(boolean enable)
Set whether the player will clean up the cache in the order of resource usage.
|
java.lang.String |
getCacheDir()
Get the cache directory.
|
int |
getCacheFileCount()
Get the number of all cache files.
|
int |
getMaxCacheFileCount()
Get the maximum number of cached files.
|
long |
getMaxCacheFileSize()
Get the total size of the largest cache file
|
int |
removeAllCaches()
Remove all media resource cache files.
|
int |
removeCacheByUri(java.lang.String uri)
Remove the cache file by uri, setting by MediaSource.
|
int |
removeOldCache()
Remove the latest media resource cache file.
|
int |
setCacheDir(java.lang.String path)
Set cache file path that files will be saved to.
|
int |
setMaxCacheFileCount(int count)
Set the maximum number of cached files.
|
int |
setMaxCacheFileSize(long cacheSize)
Set the total size of the largest cache file.
|
int removeAllCaches()
int removeOldCache()
int removeCacheByUri(java.lang.String uri)
uri
- URI,identify the uniqueness of the property, Set from `MeidaSource`int setCacheDir(java.lang.String path)
path
- file path.int setMaxCacheFileCount(int count)
count
- maximum number of cached files.int setMaxCacheFileSize(long cacheSize)
cacheSize
- total size of the largest cache file.int enableAutoRemoveCache(boolean enable)
enable
- enable the player to automatically clear the cache.java.lang.String getCacheDir()
int getMaxCacheFileCount()
long getMaxCacheFileSize()
int getCacheFileCount()