Skip to content

[camera_android_camerax] Ensure startVideoCapturing and stopVideoRecording return video with expected duration #148138

Closed
flutter/packages
#13330

Description

@camsim99

flutter/packages#6697 makes an attempt to listen to CameraX VideoRecordEvents to ensure that startVideoCapturing and stopVideoRecording only return when the video recording process has actually started/stopped the video recording process, respectively. However, when testing this by recording a video for 2s, we found consistently that the duration of the video is shorter by a couple hundred of ms (1500/1400ms vs 2000ms), indicating that the process of starting/stopping video recording eats into the expected recording time.

We should identify whether the cause is within the CameraX library, the delay between Java/Dart communication, etc. and find a fix for this issue.

Note: Via testing, we found that camera_android has a similar delay, but it is slightly less (1800ms-ish vs 2000ms).

Activity

  1. added
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    team-androidOwned by Android platform team
    on May 10, 2024
  2. added
    P2Important issues not at the top of the work list
    triaged-androidTriaged by Android platform team
    on May 16, 2024
  3. moved this to Not blocking deletion in Deprecating camera_androidon Jul 7, 2025
  4. moved this from [Non-blocking] Proposals to [Non-blocking] _camerax issues in Deprecating camera_androidon Jul 7, 2025
  5. self-assigned this
    on Oct 19, 2026
  6. moved this from [Non-blocking] Issues to Done in Deprecating camera_androidon Oct 29, 2026
  7. moved this from To do to Done in Android Camera Re-writeon Oct 31, 2026
  8. github-actions commented on Nov 12, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions