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

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

Open
camsim99 opened this issue May 10, 2024 · 0 comments
Labels
p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@camsim99
Copy link
Contributor

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).

@camsim99 camsim99 added platform-android Android applications specifically p: camera The camera plugin package flutter/packages repository. See also p: labels. team-android Owned by Android platform team labels May 10, 2024
@gmackall gmackall added P2 Important issues not at the top of the work list triaged-android Triaged by Android platform team labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Development

No branches or pull requests

2 participants