Open mr-sharmaji opened 1 year ago
Hi @mr-sharmaji, the code sample you provided above is not complete. Kindly provide a complete runnable code sample so that investigate this.
Please also provide the version of camera
& camera_web
that you're using along with the output of flutter doctor -v
Thank you
Here is the complete Runnable Code Sample:
camera version: 0.10.3+1
I am not using camera_web dependency, but this code works without it on web.
Here is the output of flutter doctor -v:
Thank You.
I can reproduce the issue using the sample provided above (complete sample pasted below). This seems to be affecting chromium-based browsers as I could reproduce it in both Arc
& Chrome
but not Safari
or Firefox
. This reproduces on both Chrome-desktop
& chrome mobile
.
I'm not entirely sure if this is an issue with the camera plugin or if this is just an issue with chrome itself, labeling for further investigation.
This appears to be a long-standing issue with Chrome:
https://bugs.chromium.org/p/chromium/issues/detail?id=642012
Are there any fixes for this issue?
Description: When recording a video using the camera in a Flutter web application, the duration of the recorded video sometimes shows a negative value in the Google Chrome browser. However, the same code works perfectly fine in Mozilla Firefox.
Code sample
```dart FutureExpected output: The duration of the recorded video should always show a positive value in all browsers.
Output received: The duration of the recorded video sometimes shows a negative value in the Google Chrome browser.
Steps to reproduce:
Open the above code in a Flutter web application. Record a video using the camera. Check the duration of the recorded video.
Additionally, I have attached a screenshot that displays the negative duration issue on Google Chrome while the same code is giving the expected positive value when running on Mozilla Firefox.