Skip to content

Commit 1b597ec

Browse files
committed
📦 release 2.7.0
1 parent 7e48955 commit 1b597ec

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Note `AndroidVideoCache` works only with **direct urls** to media file, it [**d
3434
Just add dependency (`AndroidVideoCache` is available in jcenter):
3535
```
3636
dependencies {
37-
compile 'com.danikula:videocache:2.6.4'
37+
compile 'com.danikula:videocache:2.7.0'
3838
}
3939
```
4040

@@ -140,7 +140,6 @@ HttpProxyCacheServer proxy = HttpProxyCacheServer.Builder(context)
140140
See `sample` app.
141141

142142
## Known problems
143-
- `AndroidVideoCache` [doesn't work](https://github.com/danikula/AndroidVideoCache/issues/28) if wifi or mobile internet connection uses proxy.
144143
- In some cases clients [can't connect](https://github.com/danikula/AndroidVideoCache/issues/134) to local proxy server ('Error pinging server' error). May be it is result of previous error. Note in this case video will be played, but without caching.
145144

146145
## Whats new

library/build.gradle

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

2525
compileOptions {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ public Builder maxCacheFilesCount(int count) {
419419
* Set custom DiskUsage logic for handling when to keep or clean cache.
420420
*
421421
* @param diskUsage a disk usage strategy, cant be {@code null}.
422+
* @return a builder.
422423
*/
423424
public Builder diskUsage(DiskUsage diskUsage) {
424425
this.diskUsage = checkNotNull(diskUsage);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public interface Source {
2727
* Read data to byte buffer from source with current offset.
2828
*
2929
* @param buffer a buffer to be used for reading data.
30+
* @return a count of read bytes
3031
* @throws ProxyCacheException if error occur while reading source.
3132
*/
3233
int read(byte[] buffer) throws ProxyCacheException;

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.4'
41+
compile 'com.danikula:videocache:2.7.0'
4242
compile 'com.viewpagerindicator:library:2.4.2-SNAPSHOT@aar'
4343
apt 'org.androidannotations:androidannotations:3.3.2'
4444
}

0 commit comments

Comments
 (0)