|
Agora Java API Reference for Android
|
Public Member Functions | |
| int | removeAllCaches () |
| int | removeOldCache () |
| int | removeCacheByUri (String uri) |
| int | setCacheDir (String path) |
| int | setMaxCacheFileCount (int count) |
| int | setMaxCacheFileSize (long cacheSize) |
| int | enableAutoRemoveCache (boolean enable) |
| String | getCacheDir () |
| int | getMaxCacheFileCount () |
| long | getMaxCacheFileSize () |
| int | getCacheFileCount () |
| int io.agora.mediaplayer.IMediaPlayerCacheManager.removeAllCaches | ( | ) |
Remove all media resource cache files.
| int io.agora.mediaplayer.IMediaPlayerCacheManager.removeOldCache | ( | ) |
Remove the latest media resource cache file.
| int io.agora.mediaplayer.IMediaPlayerCacheManager.removeCacheByUri | ( | String | uri | ) |
Remove the cache file by uri, setting by MediaSource.
| uri | URI,identify the uniqueness of the property, Set from MeidaSource |
| int io.agora.mediaplayer.IMediaPlayerCacheManager.setCacheDir | ( | String | path | ) |
Set cache file path that files will be saved to.
| path | file path. |
| int io.agora.mediaplayer.IMediaPlayerCacheManager.setMaxCacheFileCount | ( | int | count | ) |
Set the maximum number of cached files.
| count | maximum number of cached files. |
| int io.agora.mediaplayer.IMediaPlayerCacheManager.setMaxCacheFileSize | ( | long | cacheSize | ) |
Set the total size of the largest cache file.
| cacheSize | total size of the largest cache file. |
| int io.agora.mediaplayer.IMediaPlayerCacheManager.enableAutoRemoveCache | ( | boolean | enable | ) |
Set whether the player will clean up the cache in the order of resource usage.
| enable | enable the player to automatically clear the cache. |
| String io.agora.mediaplayer.IMediaPlayerCacheManager.getCacheDir | ( | ) |
Get the cache directory.
| int io.agora.mediaplayer.IMediaPlayerCacheManager.getMaxCacheFileCount | ( | ) |
Get the maximum number of cached files.
0: file count.
| long io.agora.mediaplayer.IMediaPlayerCacheManager.getMaxCacheFileSize | ( | ) |
Get the total size of the largest cache file
0: file size.
| int io.agora.mediaplayer.IMediaPlayerCacheManager.getCacheFileCount | ( | ) |
Get the number of all cache files.
0: file count.
1.8.18