resumePreview method

  1. @override
Future<void> resumePreview(
  1. int cameraId
)

Resume the paused preview for the selected camera.

Implementation

@override
Future<void> resumePreview(int cameraId) async {
  try {
    await getCamera(cameraId).play();
  } on html.DomException catch (e) {
    throw PlatformException(code: e.name, message: e.message);
  } on CameraWebException catch (e) {
    _addCameraErrorEvent(e);
    throw PlatformException(code: e.code.toString(), message: e.description);
  }
}