完善刷新cookie功能
修复ffmpeg下载一大堆的问题 尝试处理了SQLite的内存泄露问题(待确定)
This commit is contained in:
@@ -120,7 +120,7 @@ public class LiveService {
|
||||
long videoTime = FFmpegUtils.getVideoTime(videoFile);
|
||||
long startTime = Long.parseLong(videoId);
|
||||
long endTime = Long.parseLong(videoId) + videoTime;
|
||||
if(endTime==0){
|
||||
if(videoTime==0){
|
||||
endTime=System.currentTimeMillis();
|
||||
}
|
||||
return database.getGiftInfo(startTime, endTime);
|
||||
|
||||
@@ -278,21 +278,17 @@ public class LiveVideoDownloadService {
|
||||
public void onDownloadStart() {
|
||||
super.onDownloadStart();
|
||||
VideoTask.this.onStart();
|
||||
Log.i("启动录制:" + playInfo.getRoomId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onDownloading(double soFarBytes, double totalBytes) {
|
||||
if (!isDownload) {
|
||||
command.stop();
|
||||
}
|
||||
return super.onDownloading(soFarBytes, totalBytes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDownload(File file) {
|
||||
super.onDownload(file);
|
||||
Log.d("下载完成 ");
|
||||
stop();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user