pause method
Pause.
Implementation
Future<void> pause() async {
if (!(value.isInitialized ?? false) || _isDisposed) {
throw AudioStreamingException(
'Uninitialized CameraController',
'stopVideoStreaming was called on uninitialized CameraController',
);
}
if (!(value.isRecording ?? false)) {
throw AudioStreamingException(
'No video is recording',
'stopVideoStreaming was called when no video is streaming.',
);
}
try {
value = value.copyWith(isRecording: false, isPause: true);
await channel.pause();
} on PlatformException catch (e) {
throw AudioStreamingException(e.code, e.message);
}
}