resumeVideoRecording method
Resume video recording after pausing. Only supports Android This feature is only available on iOS and Android sdk 24+.
Implementation
Future<void> resumeVideoRecording() async {
if (!value.isInitialized! || _isDisposed) {
throw CameraException(
'Uninitialized CameraController',
'resumeVideoRecording was called on uninitialized CameraController',
);
}
if (!value.isRecordingVideo!) {
throw CameraException(
'No video is recording',
'resumeVideoRecording was called when no video is recording.',
);
}
if(!value.isRecordingPaused){
throw CameraException(
'No video is resume',
'resumeVideoRecording was called when no video is recording.',
);
}
if (!Platform.isAndroid) {
throw CameraException(
'Unsupported platforms.',
'resumeVideoRecording Only supports Android.',
);
}
try {
value = value.copyWith(isRecordingPaused: false);
await _channel.invokeMethod<void>(
'resumeVideoRecording',
<String, dynamic>{},
);
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}
}