:package: release 2.6.4: hide closing output stream error stacktrace · fei550815954/AndroidVideoCache@3023e4a · GitHub
Skip to content

Commit 3023e4a

Browse files
committed
📦 release 2.6.4: hide closing output stream error stacktrace
1 parent 090f5ec commit 3023e4a

4 files changed

Lines changed: 13 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions

library/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
defaultConfig {
1919
minSdkVersion 9
2020
targetSdkVersion 23
21-
versionCode 19
22-
versionName '2.6.3'
21+
versionCode 20
22+
versionName '2.6.4'
2323
}
2424

2525
compileOptions {
@@ -43,7 +43,7 @@ publish {
4343
userOrg = 'alexeydanilov'
4444
groupId = 'com.danikula'
4545
artifactId = 'videocache'
46-
publishVersion = '2.6.3'
46+
publishVersion = android.defaultConfig.versionName
4747
description = 'Cache support for android VideoView'
4848
website = 'https://github.com/danikula/AndroidVideoCache'
4949
}

library/src/main/java/com/danikula/videocache/HttpProxyCacheServer.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
* <pre><code>
3737
* public onCreate(Bundle state) {
3838
* super.onCreate(state);
39-
* <p/>
39+
*
4040
* HttpProxyCacheServer proxy = getProxy();
4141
* String proxyUrl = proxy.getProxyUrl(VIDEO_URL);
4242
* videoView.setVideoPath(proxyUrl);
4343
* }
44-
* <p/>
44+
*
4545
* private HttpProxyCacheServer getProxy() {
4646
* // should return single instance of HttpProxyCacheServer shared for whole app.
4747
* }
48-
* <code/></pre>
48+
* </code></pre>
4949
*
5050
* @author Alexey Danilov (danikula@gmail.com).
5151
*/
@@ -291,7 +291,7 @@ private void closeSocketOutput(Socket socket) {
291291
socket.shutdownOutput();
292292
}
293293
} catch (IOException e) {
294-
onError(new ProxyCacheException("Error closing socket output stream", e));
294+
LOG.warn("Failed to close socket on proxy side: {}. It seems client have already closed connection.", e.getMessage());
295295
}
296296
}
297297

@@ -359,11 +359,11 @@ public Builder(Context context) {
359359

360360
/**
361361
* Overrides default cache folder to be used for caching files.
362-
* <p/>
362+
* <p>
363363
* By default AndroidVideoCache uses
364364
* '/Android/data/[app_package_name]/cache/video-cache/' if card is mounted and app has appropriate permission
365365
* or 'video-cache' subdirectory in default application's cache directory otherwise.
366-
* <p/>
366+
* </p>
367367
* <b>Note</b> directory must be used <b>only</b> for AndroidVideoCache files.
368368
*
369369
* @param file a cache directory, can't be null.
@@ -387,9 +387,10 @@ public Builder fileNameGenerator(FileNameGenerator fileNameGenerator) {
387387

388388
/**
389389
* Sets max cache size in bytes.
390+
* <p>
390391
* All files that exceeds limit will be deleted using LRU strategy.
391392
* Default value is 512 Mb.
392-
* <p/>
393+
* </p>
393394
* Note this method overrides result of calling {@link #maxCacheFilesCount(int)}
394395
*
395396
* @param maxSize max cache size in bytes.
@@ -403,7 +404,6 @@ public Builder maxCacheSize(long maxSize) {
403404
/**
404405
* Sets max cache files count.
405406
* All files that exceeds limit will be deleted using LRU strategy.
406-
* <p/>
407407
* Note this method overrides result of calling {@link #maxCacheSize(long)}
408408
*
409409
* @param count max cache files count.

sample/build.gradle

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)