You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[camera_android_camerax] Ensure startVideoCapturing and stopVideoRecording return video with expected duration #148138
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).
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.
Activity
camsim99 commentedon Feb 26, 2026
Just came across this API which may be useful: https://developer.android.com/reference/androidx/camera/video/VideoRecordEvent#getRecordingStats()
[camera_android_x] implement CameraX RecordingStats and VideoRecordEv…
github-actions commentedon Nov 12, 2026
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 -vand a minimal reproduction of the issue.