完善刷新cookie功能

修复ffmpeg下载一大堆的问题
尝试处理了SQLite的内存泄露问题(待确定)
This commit is contained in:
2024-11-25 18:03:17 +08:00
parent 8cf56a4ffe
commit 44d23b6bac
12 changed files with 194 additions and 63 deletions

View File

@@ -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);

View File

@@ -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();
}
});