-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 release 2.6.4: hide closing output stream error stacktrace
- Loading branch information
Showing
4 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,16 +36,16 @@ | |
* <pre><code> | ||
* public onCreate(Bundle state) { | ||
* super.onCreate(state); | ||
* <p/> | ||
* | ||
* HttpProxyCacheServer proxy = getProxy(); | ||
* String proxyUrl = proxy.getProxyUrl(VIDEO_URL); | ||
* videoView.setVideoPath(proxyUrl); | ||
* } | ||
* <p/> | ||
* | ||
* private HttpProxyCacheServer getProxy() { | ||
* // should return single instance of HttpProxyCacheServer shared for whole app. | ||
* } | ||
* <code/></pre> | ||
* </code></pre> | ||
* | ||
* @author Alexey Danilov ([email protected]). | ||
*/ | ||
|
@@ -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. | ||
* <p/> | ||
* <p> | ||
* 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. | ||
* <p/> | ||
* </p> | ||
* <b>Note</b> directory must be used <b>only</b> for AndroidVideoCache files. | ||
* | ||
* @param file a cache directory, can't be null. | ||
|
@@ -387,9 +387,10 @@ public Builder fileNameGenerator(FileNameGenerator fileNameGenerator) { | |
|
||
/** | ||
* Sets max cache size in bytes. | ||
* <p> | ||
* All files that exceeds limit will be deleted using LRU strategy. | ||
* Default value is 512 Mb. | ||
* <p/> | ||
* </p> | ||
* 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. | ||
* <p/> | ||
* Note this method overrides result of calling {@link #maxCacheSize(long)} | ||
* | ||
* @param count max cache files count. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters