From 9b5193c38f66ff0757cfa8a8ce1bb6c18cbaac85 Mon Sep 17 00:00:00 2001
From: Alexey Danilov
* By default AndroidVideoCache uses
* '/Android/data/[app_package_name]/cache/video-cache/' if card is mounted and app has appropriate permission
* or 'video-cache' subdirectory in default application's cache directory otherwise.
- *
+ *
*
* @author Alexey Danilov (danikula@gmail.com).
*/
@@ -291,7 +291,7 @@ private void closeSocketOutput(Socket socket) {
socket.shutdownOutput();
}
} catch (IOException e) {
- onError(new ProxyCacheException("Error closing socket output stream", e));
+ LOG.warn("Failed to close socket on proxy side: {}. It seems client have already closed connection.", e.getMessage());
}
}
@@ -359,11 +359,11 @@ public Builder(Context context) {
/**
* Overrides default cache folder to be used for caching files.
- *
+ *
* public onCreate(Bundle state) {
* super.onCreate(state);
- *
+ *
* HttpProxyCacheServer proxy = getProxy();
* String proxyUrl = proxy.getProxyUrl(VIDEO_URL);
* videoView.setVideoPath(proxyUrl);
* }
- *
+ *
* private HttpProxyCacheServer getProxy() {
* // should return single instance of HttpProxyCacheServer shared for whole app.
* }
- *
* All files that exceeds limit will be deleted using LRU strategy. * Default value is 512 Mb. - *
+ * * Note this method overrides result of calling {@link #maxCacheFilesCount(int)} * * @param maxSize max cache size in bytes. @@ -403,7 +404,6 @@ public Builder maxCacheSize(long maxSize) { /** * Sets max cache files count. * All files that exceeds limit will be deleted using LRU strategy. - * * Note this method overrides result of calling {@link #maxCacheSize(long)} * * @param count max cache files count. diff --git a/sample/build.gradle b/sample/build.gradle index 5104e14..0a26abd 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -38,7 +38,7 @@ dependencies { // compile project(':library') compile 'com.android.support:support-v4:23.1.0' compile 'org.androidannotations:androidannotations-api:3.3.2' - compile 'com.danikula:videocache:2.6.3' + compile 'com.danikula:videocache:2.6.4' compile 'com.viewpagerindicator:library:2.4.2-SNAPSHOT@aar' apt 'org.androidannotations:androidannotations:3.3.2' }