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] Ability to get the current duration of the recorded video #101785
Since Camera plugin allows us to pause and resume the recordings, this need is even more important imo.
Is there a way to get the recording duration before calling stopRecording?
Of course we can implement a separate Timer and try to keep track of the recording duration but this solutions won't be exact in milliseconds.
Most of the apps have strict recording limits and being able to stop recording by listening to the camera controller and getting the duration will make everything more stable.
I think that we should be able to get the current recording duration from CameraController.value.
Reacted by Aleksandar, Vitor, Vilius Paliokas, Deepak Goyal, Daniel Gah, Artyom, Zakhar Podyakov and Oleh Treskot
Hi @aytunch, Thanks for filing the issue. The Camera plugin currently doesn't support showing recorded video duration. Labeling this issue as a proposal to get the recorded video duration from the camera plugin.
Hi @maheshmnj , does the Camera plugin support a maxDuration, Because currently, any video recording longer than 50seconds, tends to crash my app. Showing
Hi @maheshmnj , thanks for your feedback, so I figured it out, it's mostly on the Android OS issue, as the OS tends to close any application that is consuming lots of RAM while running at the background.
Hi @maheshmnj , thanks for your feedback, so I figured it out, it's mostly on the Android OS issue, as the OS tends to close any application that is consuming lots of RAM while running at the background.
Activity
maheshj01 commentedon Apr 13, 2022
Hi @aytunch, Thanks for filing the issue. The Camera plugin currently doesn't support showing recorded video duration. Labeling this issue as a proposal to get the recorded video duration from the camera plugin.
gikwegbu commentedon Jun 30, 2022
Hi @maheshmnj , does the Camera plugin support a maxDuration, Because currently, any video recording longer than 50seconds, tends to crash my app. Showing
Clamp target GC heap from 279MB to 256MBmaheshj01 commentedon Jul 1, 2022
@gikwegbu Please file that as a separate issue with all the requested info in the issue template, We would love to take a look.
gikwegbu commentedon Jul 4, 2022
Hi @maheshmnj , thanks for your feedback, so I figured it out, it's mostly on the Android OS issue, as the OS tends to close any application that is consuming lots of RAM while running at the background.
A solution I found was to add
android:hardwareAccelerated="false" android:largeHeap="true"In my AndroidManifest.xml, and it solved it for me.
reiko-dev commentedon Jul 14, 2022
CartmanGD commentedon Nov 9, 2022
try to avoid
largeHeaphttps://stackoverflow.com/a/30930239/12695188