videoRecordAndSaveLocal method
Map<String, dynamic>
videoRecordAndSaveLocal(
- bool isStart
)
override
Implementation
@override
Map<String, dynamic> videoRecordAndSaveLocal(bool isStart) {
// if (isRequestPending) {
// return {
// "isError": true,
// "message": "PENDING_PREVIOUS_REQUEST",
// "details": "Called videoRecordAndSaveLocal()"
// };
// }
if (initializedCamera.isEmpty) {
return {"isError": true, "message": "Invalid camera operation!"};
}
if (isStart) {
methodChannel.invokeMethod('START_RECORDING');
} else {
methodChannel.invokeMethod('STOP_RECORDING');
}
return {
"isError": false,
"message":
isStart ? "Recording started" : "Recording save to your local device"
};
}