|
|
@ -41,7 +41,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Camera |
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<List<CameraDescription>> availableCameras() async { |
|
|
|
Future<List<CameraDescription>> availableCameras() async { |
|
|
|
final List<CameraDescription> result = []; |
|
|
|
final List<CameraDescription> result = []; |
|
|
@ -100,7 +99,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform { |
|
|
|
.invokeMethod<Object?>(CameraAuroraMethods.dispose.name); |
|
|
|
.invokeMethod<Object?>(CameraAuroraMethods.dispose.name); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Make Photo |
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<XFile> takePicture(int cameraId) async { |
|
|
|
Future<XFile> takePicture(int cameraId) async { |
|
|
|
final image = await methodsChannel.invokeMethod<String?>( |
|
|
|
final image = await methodsChannel.invokeMethod<String?>( |
|
|
@ -116,7 +114,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Record Video |
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<void> startVideoRecording(int cameraId, |
|
|
|
Future<void> startVideoRecording(int cameraId, |
|
|
|
{Duration? maxVideoDuration}) async { |
|
|
|
{Duration? maxVideoDuration}) async { |
|
|
|