action_enable_audio method

bool action_enable_audio({
  1. required void onCameraNotInit(),
  2. required void onCameraNotSelect(),
  3. required void onCameraNotActive(),
})

Implementation

bool action_enable_audio({
  required void Function() onCameraNotInit,
  required void Function() onCameraNotSelect,
  required void Function() onCameraNotActive,
}) {
  bool is_check_camera = util_check_camera(
    onCameraNotInit: onCameraNotInit,
    onCameraNotSelect: onCameraNotSelect,
    onCameraNotActive: onCameraNotActive,
  );
  if (!is_check_camera) {
    return false;
  }
  if (isMobile) {
    return camera_mobile_controller.enableAudio;
  } else if (isDesktop) {
    if (Platform.isWindows) {}
  }
  return false;
}