pauseVideoRecording method
Future<void>
pauseVideoRecording(
)
Implementation
Future<void> pauseVideoRecording() async {
final int? id = _sessionId;
if (id == null || value.state != UCameraState.recording) return;
await _set("pauseRecording", const <String, Object?>{});
_recordingTicker?.cancel();
final DateTime? startedAt = _recordingStartedAt;
if (startedAt != null) _recordedBeforePause += DateTime.now().difference(startedAt);
_recordingStartedAt = null;
_emit(value.copyWith(state: UCameraState.recordingPaused));
}