forked from CarGuo/GSYVideoPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
2,454 additions
and
3 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 |
---|---|---|
@@ -1 +1 @@ | ||
include ':app', ':gsyVideoPlayer' | ||
include ':app', ':gsyVideoPlayer', ':videoCache' |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.novoda:bintray-release:0.3.4' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'idea' | ||
apply plugin: 'bintray-release' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion '22.0.1' | ||
|
||
defaultConfig { | ||
minSdkVersion 9 | ||
targetSdkVersion 23 | ||
versionCode 19 | ||
versionName '2.6.3' | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
} | ||
|
||
idea { | ||
module { | ||
downloadJavadoc = true | ||
downloadSources = true | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'org.slf4j:slf4j-android:1.7.21' | ||
} | ||
|
||
publish { | ||
userOrg = 'alexeydanilov' | ||
groupId = 'com.danikula' | ||
artifactId = 'videocache' | ||
publishVersion = '2.6.3' | ||
description = 'Cache support for android VideoView' | ||
website = 'https://github.com/danikula/AndroidVideoCache' | ||
} |
13 changes: 13 additions & 0 deletions
13
...erated/source/buildConfig/androidTest/debug/com/danikula/videocache/test/BuildConfig.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Automatically generated file. DO NOT MODIFY | ||
*/ | ||
package com.danikula.videocache.test; | ||
|
||
public final class BuildConfig { | ||
public static final boolean DEBUG = Boolean.parseBoolean("true"); | ||
public static final String APPLICATION_ID = "com.danikula.videocache.test"; | ||
public static final String BUILD_TYPE = "debug"; | ||
public static final String FLAVOR = ""; | ||
public static final int VERSION_CODE = 19; | ||
public static final String VERSION_NAME = "2.6.3"; | ||
} |
13 changes: 13 additions & 0 deletions
13
videoCache/build/generated/source/buildConfig/debug/com/danikula/videocache/BuildConfig.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Automatically generated file. DO NOT MODIFY | ||
*/ | ||
package com.danikula.videocache; | ||
|
||
public final class BuildConfig { | ||
public static final boolean DEBUG = Boolean.parseBoolean("true"); | ||
public static final String APPLICATION_ID = "com.danikula.videocache"; | ||
public static final String BUILD_TYPE = "debug"; | ||
public static final String FLAVOR = ""; | ||
public static final int VERSION_CODE = 19; | ||
public static final String VERSION_NAME = "2.6.3"; | ||
} |
14 changes: 14 additions & 0 deletions
14
videoCache/build/intermediates/bundles/debug/AndroidManifest.xml
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
package="com.danikula.videocache" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="19" | ||
android:versionName="2.6.3" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="23" /> | ||
|
||
<application /> | ||
|
||
</manifest> |
14 changes: 14 additions & 0 deletions
14
videoCache/build/intermediates/bundles/release/AndroidManifest.xml
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
package="com.danikula.videocache" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="19" | ||
android:versionName="2.6.3" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="23" /> | ||
|
||
<application /> | ||
|
||
</manifest> |
Binary file added
BIN
+5 Bytes
videoCache/build/intermediates/incremental/compileDebugAidl/dependency.store
Binary file not shown.
Binary file added
BIN
+5 Bytes
videoCache/build/intermediates/incremental/compileDebugAndroidTestAidl/dependency.store
Binary file not shown.
Binary file added
BIN
+5 Bytes
videoCache/build/intermediates/incremental/compileReleaseAidl/dependency.store
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...uild/intermediates/incremental/mergeDebugAndroidTestResources/compile-file-map.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#Fri Dec 02 23:33:54 GMT+08:00 2016 |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/mergeDebugAndroidTestResources/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="debug$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\intermediates\bundles\debug\res"/></dataSet><dataSet config="main$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\androidTest\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\androidTest\debug"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\androidTest\debug"/></dataSet><dataSet config="debug" from-dependency="true" generated-set="debug$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\intermediates\bundles\debug\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\androidTest\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\androidTest\debug"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\androidTest\debug"/></dataSet><mergedItems/></merger> |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/mergeDebugAssets/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\assets"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\assets\shaders\debug"/></dataSet><dataSet config="debug"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\debug\assets"/></dataSet></merger> |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/mergeDebugShaders/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\shaders"/></dataSet><dataSet config="debug"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\debug\shaders"/></dataSet></merger> |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/mergeReleaseAssets/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\assets"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\assets\shaders\release"/></dataSet><dataSet config="release"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\release\assets"/></dataSet></merger> |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/mergeReleaseShaders/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\shaders"/></dataSet><dataSet config="release"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\release\shaders"/></dataSet></merger> |
1 change: 1 addition & 0 deletions
1
videoCache/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#Fri Dec 02 23:33:52 GMT+08:00 2016 |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/packageDebugResources/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\debug"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\debug\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\debug"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug" generated-set="debug$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\debug\res"/></dataSet><mergedItems/></merger> |
1 change: 1 addition & 0 deletions
1
...Cache/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#Fri Dec 02 23:34:58 GMT+08:00 2016 |
2 changes: 2 additions & 0 deletions
2
videoCache/build/intermediates/incremental/packageReleaseResources/merger.xml
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\release"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\release"/></dataSet><dataSet config="release$Generated" generated="true"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\release\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\main\res"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\rs\release"/><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\build\generated\res\resValues\release"/></dataSet><dataSet config="release" generated-set="release$Generated"><source path="D:\workSpace\android\Github-Code\GSYVideoPlayer\videoCache\src\release\res"/></dataSet><mergedItems/></merger> |
20 changes: 20 additions & 0 deletions
20
videoCache/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.danikula.videocache.test" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="23" /> | ||
|
||
<instrumentation | ||
android:name="android.test.InstrumentationTestRunner" | ||
android:functionalTest="false" | ||
android:handleProfiling="false" | ||
android:label="Tests for com.danikula.videocache.test" | ||
android:targetPackage="com.danikula.videocache.test" /> | ||
|
||
<application> | ||
<uses-library android:name="android.test.runner" /> | ||
</application> | ||
|
||
</manifest> |
14 changes: 14 additions & 0 deletions
14
videoCache/build/intermediates/manifests/aapt/debug/AndroidManifest.xml
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
package="com.danikula.videocache" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="19" | ||
android:versionName="2.6.3" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="23" /> | ||
|
||
<application /> | ||
|
||
</manifest> |
14 changes: 14 additions & 0 deletions
14
videoCache/build/intermediates/manifests/aapt/release/AndroidManifest.xml
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
package="com.danikula.videocache" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="19" | ||
android:versionName="2.6.3" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="23" /> | ||
|
||
<application /> | ||
|
||
</manifest> |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
package="com.danikula.videocache"> | ||
<application /> | ||
</manifest> |
63 changes: 63 additions & 0 deletions
63
videoCache/src/main/java/com/danikula/videocache/ByteArrayCache.java
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package com.danikula.videocache; | ||
|
||
import java.io.ByteArrayInputStream; | ||
import java.util.Arrays; | ||
|
||
/** | ||
* Simple memory based {@link Cache} implementation. | ||
* | ||
* @author Alexey Danilov (danikula@gmail.com). | ||
*/ | ||
public class ByteArrayCache implements Cache { | ||
|
||
private volatile byte[] data; | ||
private volatile boolean completed; | ||
|
||
public ByteArrayCache() { | ||
this(new byte[0]); | ||
} | ||
|
||
public ByteArrayCache(byte[] data) { | ||
this.data = Preconditions.checkNotNull(data); | ||
} | ||
|
||
@Override | ||
public int read(byte[] buffer, long offset, int length) throws ProxyCacheException { | ||
if (offset >= data.length) { | ||
return -1; | ||
} | ||
if (offset > Integer.MAX_VALUE) { | ||
throw new IllegalArgumentException("Too long offset for memory cache " + offset); | ||
} | ||
return new ByteArrayInputStream(data).read(buffer, (int) offset, length); | ||
} | ||
|
||
@Override | ||
public int available() throws ProxyCacheException { | ||
return data.length; | ||
} | ||
|
||
@Override | ||
public void append(byte[] newData, int length) throws ProxyCacheException { | ||
Preconditions.checkNotNull(data); | ||
Preconditions.checkArgument(length >= 0 && length <= newData.length); | ||
|
||
byte[] appendedData = Arrays.copyOf(data, data.length + length); | ||
System.arraycopy(newData, 0, appendedData, data.length, length); | ||
data = appendedData; | ||
} | ||
|
||
@Override | ||
public void close() throws ProxyCacheException { | ||
} | ||
|
||
@Override | ||
public void complete() { | ||
completed = true; | ||
} | ||
|
||
@Override | ||
public boolean isCompleted() { | ||
return completed; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
videoCache/src/main/java/com/danikula/videocache/ByteArraySource.java
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.danikula.videocache; | ||
|
||
import java.io.ByteArrayInputStream; | ||
|
||
/** | ||
* Simple memory based {@link Source} implementation. | ||
* | ||
* @author Alexey Danilov (danikula@gmail.com). | ||
*/ | ||
public class ByteArraySource implements Source { | ||
|
||
private final byte[] data; | ||
private ByteArrayInputStream arrayInputStream; | ||
|
||
public ByteArraySource(byte[] data) { | ||
this.data = data; | ||
} | ||
|
||
@Override | ||
public int read(byte[] buffer) throws ProxyCacheException { | ||
return arrayInputStream.read(buffer, 0, buffer.length); | ||
} | ||
|
||
@Override | ||
public int length() throws ProxyCacheException { | ||
return data.length; | ||
} | ||
|
||
@Override | ||
public void open(int offset) throws ProxyCacheException { | ||
arrayInputStream = new ByteArrayInputStream(data); | ||
arrayInputStream.skip(offset); | ||
} | ||
|
||
@Override | ||
public void close() throws ProxyCacheException { | ||
} | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
videoCache/src/main/java/com/danikula/videocache/Cache.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.danikula.videocache; | ||
|
||
/** | ||
* Cache for proxy. | ||
* | ||
* @author Alexey Danilov (danikula@gmail.com). | ||
*/ | ||
public interface Cache { | ||
|
||
int available() throws ProxyCacheException; | ||
|
||
int read(byte[] buffer, long offset, int length) throws ProxyCacheException; | ||
|
||
void append(byte[] data, int length) throws ProxyCacheException; | ||
|
||
void close() throws ProxyCacheException; | ||
|
||
void complete() throws ProxyCacheException; | ||
|
||
boolean isCompleted(); | ||
} |
14 changes: 14 additions & 0 deletions
14
videoCache/src/main/java/com/danikula/videocache/CacheListener.java
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.danikula.videocache; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* Listener for cache availability. | ||
* | ||
* @author Egor Makovsky (yahor.makouski@gmail.com) | ||
* @author Alexey Danilov (danikula@gmail.com). | ||
*/ | ||
public interface CacheListener { | ||
|
||
void onCacheAvailable(File cacheFile, String url, int percentsAvailable); | ||
} |
Oops, something went wrong.