com.danikula.videocache.ProxyCacheUtils Java Examples
The following examples show how to use
com.danikula.videocache.ProxyCacheUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Config.java From TigerVideo with Apache License 2.0 | 5 votes |
private HttpProxyCacheServer buildCacheProxy() { return new HttpProxyCacheServer .Builder(context.getApplicationContext()) .cacheDirectory(new File(Utils.getCacheDir(context))) .fileNameGenerator(new Md5FileNameGenerator() { @Override public String generate(String url) { return ProxyCacheUtils.computeMD5(url); } }) .maxCacheFilesCount(20) .build(); }
Example #2
Source File: Md5FileNameGenerator.java From AndriodVideoCache with Apache License 2.0 | 4 votes |
@Override public String generate(String url) { String extension = getExtension(url); String name = ProxyCacheUtils.computeMD5(url); return TextUtils.isEmpty(extension) ? name : name + "." + extension; }
Example #3
Source File: Md5FileNameGenerator.java From DKVideoPlayer with Apache License 2.0 | 4 votes |
@Override public String generate(String url) { String extension = getExtension(url); String name = ProxyCacheUtils.computeMD5(url); return TextUtils.isEmpty(extension) ? name : name + "." + extension; }
Example #4
Source File: Md5FileNameGenerator.java From GSYVideoPlayer with Apache License 2.0 | 4 votes |
@Override public String generate(String url) { String extension = getExtension(url); String name = ProxyCacheUtils.computeMD5(url); return TextUtils.isEmpty(extension) ? name : name + "." + extension; }
Example #5
Source File: Md5FileNameGenerator.java From AndroidVideoCache with Apache License 2.0 | 4 votes |
@Override public String generate(String url) { String extension = getExtension(url); String name = ProxyCacheUtils.computeMD5(url); return TextUtils.isEmpty(extension) ? name : name + "." + extension; }