封版羽声,作为最后的基础版

This commit is contained in:
2025-08-04 17:15:03 +08:00
parent 86b32f65d4
commit 5a6600a7e3
377 changed files with 384105 additions and 357697 deletions

View File

@@ -37,10 +37,10 @@ import com.opensource.svgaplayer.SVGAParser;
import com.opensource.svgaplayer.SVGAVideoEntity;
import com.qxcm.moduleutil.R;
import com.qxcm.moduleutil.databinding.RoomViewSvgaAnimBinding;
import com.qxcm.moduleutil.utils.DownloadUtil;
import com.qxcm.moduleutil.utils.Md5Utils;
import com.qxcm.moduleutil.utils.SpUtil;
import com.qxcm.moduleutil.utils.logger.Logger;
import com.tencent.bugly.idasc.crashreport.CrashReport;
import com.tencent.qgame.animplayer.AnimConfig;
import com.tencent.qgame.animplayer.inter.IAnimListener;
import com.tencent.qgame.animplayer.inter.IFetchResource;
@@ -229,11 +229,10 @@ public class AvatarFrameView extends FrameLayout implements IAnimListener {
}
private void downloadAndPlayMp4(String url) {
DownloadTask task = new DownloadTask.Builder(url, PathUtils.getInternalAppCachePath()
, Md5Utils.getStringMD5(url) + ".mp4")
// the minimal interval millisecond for callback progress
.setMinIntervalMillisCallbackProcess(100)
// do re-download even if the task has already been completed in the past.
.setPassIfAlreadyCompleted(false)
.setAutoCallbackToUIThread(true)
.build();
@@ -250,7 +249,9 @@ public class AvatarFrameView extends FrameLayout implements IAnimListener {
@Override
public void retry(@NonNull DownloadTask task, @NonNull ResumeFailedCause cause) {
Logger.e("retry", cause);
CrashReport.postCatchedException(new RuntimeException("下载文件重试:" + cause == null ? "" : cause.name()));
task.cancel();
// CrashReport.postCatchedException(new RuntimeException("下载文件重试:" + cause == null ? "" : cause.name()));
}
@Override
@@ -283,7 +284,7 @@ public class AvatarFrameView extends FrameLayout implements IAnimListener {
} else {
// showAnim();
// playMp4(file);
CrashReport.postCatchedException(new RuntimeException("播放MP4失败:File is null"));
// CrashReport.postCatchedException(new RuntimeException("播放MP4失败:File is null"));
}
}