Browse Source

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

guanxinyi 4 tháng trước cách đây
mục cha
commit
4406b5e8ba

+ 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;