Browse Source

1、修改手机端播放暂停的事件

guanxinyi 1 year ago
parent
commit
a30c6f3968
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/view/mobile_view/mobile_control_board/play_btn.dart

+ 1 - 1
lib/view/mobile_view/mobile_control_board/play_btn.dart

@@ -39,7 +39,7 @@ class SinglePlayButtonState extends State<SinglePlayButton> {
       padding: EdgeInsets.zero,
       onPressed: () {
         if (playing) {
-          playerController.pause();
+          playerController.locateTo(playerController.currentFrameIndex);
           // playerController.gotoFrame(playerController.currentFrameIndex);
         } else {
           playerController.play();