resumeRecording method
Resumes a video recording. pauseRecording must have been called before.
Implementation
Future<void> resumeRecording(MediaCapture currentCapture) async {
if (!currentCapture.isVideo) {
throw "Trying to pause a video while currentCapture is not a video (${currentCapture.filePath})";
}
if (currentCapture.status != MediaCaptureStatus.capturing) {
throw "Trying to pause a media capture in status ${currentCapture.status} instead of ${MediaCaptureStatus.capturing}";
}
await CamerawesomePlugin.resumeVideoRecording();
_mediaCapture = MediaCapture.capturing(
filePath: currentCapture.filePath, videoState: VideoState.resumed);
}