视频预加载

This commit is contained in:
张玉久
2019-12-19 15:03:12 +08:00
parent ec5305b76f
commit ee5862eddd
6 changed files with 337 additions and 5 deletions

View File

@ -0,0 +1,41 @@
package com.gh.download.cache;
public class CacheInfo {
public static final long TOTAL_ERROR = -1;//获取进度失败
private String url;
private long total;
private long progress;
private String fileName;
public CacheInfo(String url) {
this.url = url;
}
public String getUrl() {
return url;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public long getProgress() {
return progress;
}
public void setProgress(long progress) {
this.progress = progress;
}
}