Skip to content

Commit 9b5193c

Browse files
committed
📦 release 2.6.4: hide closing output stream error stacktrace
1 parent 8603d5e commit 9b5193c

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ Note `AndroidVideoCache` works only with **direct urls** to media file, it [**d
3232
## Get started
3333
Just add dependency (`AndroidVideoCache` is available in jcenter):
3434
```
35-
repositories {
36-
jcenter()
37-
}
3835
dependencies {
39-
compile 'com.danikula:videocache:2.6.3'
36+
compile 'com.danikula:videocache:2.6.4'
4037
}
4138
```
4239

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
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies {
3838
// compile project(':library')
3939
compile 'com.android.support:support-v4:23.1.0'
4040
compile 'org.androidannotations:androidannotations-api:3.3.2'
41-
compile 'com.danikula:videocache:2.6.3'
41+
compile 'com.danikula:videocache:2.6.4'
4242
compile 'com.viewpagerindicator:library:2.4.2-SNAPSHOT@aar'
4343
apt 'org.androidannotations:androidannotations:3.3.2'
4444
}

0 commit comments

Comments
 (0)