video recording can't save in ExternalStorageDirectory on physical but works on virtual device ,and there not have any error
pathBuilder: (sensors) async {
final Directory extDir = await getExternalStorageDirectory();
final testDir = await Directory(
'${extDir.path}/camerawesome',
).create(recursive: true);
if (sensors.length == 1) {
final String filePath =
'${testDir.path}/${DateTime.now().millisecondsSinceEpoch}.jpg';
return SingleCaptureRequest(filePath, sensors.first);
}
// Separate pictures taken with front and back camera
return MultipleCaptureRequest(
{
for (final sensor in sensors)
sensor:
'${testDir.path}/${sensor.position == SensorPosition.front ? 'front_' : "back_"}${DateTime.now().millisecondsSinceEpoch}.jpg',
},
);
},
Steps to Reproduce
video recording can't save in ExternalStorageDirectory on physical but works on virtual device ,and there not have any error
when i logging Permission.storage.status
The log is I/flutter (16148): PermissionStatus.denied
Expected results
What it should be
Actual results
What you see
About your device
Your flutter version
Run this in your command line
3.19
android api 34Paste the result here