Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error with something #279

Open
huachang opened this issue Oct 24, 2024 · 0 comments
Open

[BUG] Error with something #279

huachang opened this issue Oct 24, 2024 · 0 comments
Labels
await investigate The issue is waiting for further investigation.

Comments

@huachang
Copy link

The official CameraPickerState does not stop the timer when a file is created using the camera before the timer ends.

 Future<void> stopRecordingVideo() async {
    if (isControllerBusy) {
      return;
    }

    recordStopwatch.stop();
    if (innerController == null || !controller.value.isRecordingVideo) {
      recordCountdownTimer?.cancel();
      safeSetState(() {
        isControllerBusy = false;
        isShootingButtonAnimate = false;
      });
      return;
    }
    safeSetState(() {
      isControllerBusy = true;
      lastShootingButtonPressedPosition = null;
    });
    try {
      // should stop the timer here
      final XFile file = await controller.stopVideoRecording();
@huachang huachang added the await investigate The issue is waiting for further investigation. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
await investigate The issue is waiting for further investigation.
Projects
None yet
Development

No branches or pull requests

1 participant