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]: Proposal to add set path file on startVideoRecording #91680
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
darshankawar commentedon Oct 13, 2021
@webforuse
Can you elaborate your use case in more detail ? What exactly is current limitation ?
Thanks.
webforuse commentedon Oct 13, 2021
Hi
In Android source code we see
public void startVideoRecording(@NonNull Result result) { final File outputDir = applicationContext.getCacheDir(); try { captureFile = File.createTempFile("REC", ".mp4", outputDir); } catch (IOException | SecurityException e) { result.error("cannotCreateFile", e.getMessage(), null); return; } try { prepareMediaRecorder(captureFile.getAbsolutePath()); } catch (IOException e) { recordingVideo = false; captureFile = null; result.error("videoRecordingFailed", e.getMessage(), null); return; }we request and then save the file to the cache
final File outputDir = applicationContext.getCacheDir();
we need to save large amounts of video information to the sd card.
Here we have to copy this file to the place we need after the recording is finished
[-]camera plugin feature request [/-][+][Camera]: Proposal to add set path file on startVideoRecording[/+]5 remaining items
Stop losing recordings when the phone runs out of storage
[camera] add custom path ouput to recording (flutter#11774)
github-actions commentedon Oct 8, 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.