mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-06-19 17:53:26 +08:00
📦 release 2.7.0
This commit is contained in:
@@ -34,7 +34,7 @@ Note `AndroidVideoCache` works only with **direct urls** to media file, it [**d
|
||||
Just add dependency (`AndroidVideoCache` is available in jcenter):
|
||||
```
|
||||
dependencies {
|
||||
compile 'com.danikula:videocache:2.6.4'
|
||||
compile 'com.danikula:videocache:2.7.0'
|
||||
}
|
||||
```
|
||||
|
||||
@@ -140,7 +140,6 @@ HttpProxyCacheServer proxy = HttpProxyCacheServer.Builder(context)
|
||||
See `sample` app.
|
||||
|
||||
## Known problems
|
||||
- `AndroidVideoCache` [doesn't work](https://github.com/danikula/AndroidVideoCache/issues/28) if wifi or mobile internet connection uses proxy.
|
||||
- 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.
|
||||
|
||||
## Whats new
|
||||
|
||||
@@ -18,8 +18,8 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 9
|
||||
targetSdkVersion 23
|
||||
versionCode 20
|
||||
versionName '2.6.4'
|
||||
versionCode 21
|
||||
versionName '2.7.0'
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
||||
@@ -419,6 +419,7 @@ public class HttpProxyCacheServer {
|
||||
* Set custom DiskUsage logic for handling when to keep or clean cache.
|
||||
*
|
||||
* @param diskUsage a disk usage strategy, cant be {@code null}.
|
||||
* @return a builder.
|
||||
*/
|
||||
public Builder diskUsage(DiskUsage diskUsage) {
|
||||
this.diskUsage = checkNotNull(diskUsage);
|
||||
|
||||
@@ -27,6 +27,7 @@ public interface Source {
|
||||
* Read data to byte buffer from source with current offset.
|
||||
*
|
||||
* @param buffer a buffer to be used for reading data.
|
||||
* @return a count of read bytes
|
||||
* @throws ProxyCacheException if error occur while reading source.
|
||||
*/
|
||||
int read(byte[] buffer) throws ProxyCacheException;
|
||||
|
||||
@@ -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.4'
|
||||
compile 'com.danikula:videocache:2.7.0'
|
||||
compile 'com.viewpagerindicator:library:2.4.2-SNAPSHOT@aar'
|
||||
apt 'org.androidannotations:androidannotations:3.3.2'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user