浏览代码

1、修复最后一帧无法播放的问题

guanxinyi 4 月之前
父节点
当前提交
4406b5e8ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/lab/pages/lab_image/widgets/image_data_player/controller.dart

+ 1 - 1
lib/lab/pages/lab_image/widgets/image_data_player/controller.dart

@@ -124,7 +124,7 @@ class ImageDataPlayerController extends GetxController {
   bool onFrameChangeEvent(int frame) {
     if (playerController != null) {
       final bufferedFrameCount = (_bufferedPercent * _totalFrames).toInt();
-      if (bufferedFrameCount > frame) {
+      if (bufferedFrameCount >= frame) {
         playerController!.pause();
         playerController!.gotoFrame(frame);
         return true;