createCameraWithSettings method
Future<int>
createCameraWithSettings(
- CameraDescription cameraDescription,
- MediaSettings mediaSettings
Creates an uninitialized camera instance and returns the cameraId.
Pass MediaSettings() for defaults
Implementation
Future<int> createCameraWithSettings(
CameraDescription cameraDescription,
MediaSettings mediaSettings,
) {
return createCamera(
cameraDescription,
mediaSettings.resolutionPreset,
enableAudio: mediaSettings.enableAudio,
);
}