shouldApplyDesktopVideoCaptureDeviceImmediately static method

  1. @visibleForTesting
bool shouldApplyDesktopVideoCaptureDeviceImmediately({
  1. required bool isDesktopRuntime,
  2. required bool isCameraOpen,
})

Implementation

@visibleForTesting
static bool shouldApplyDesktopVideoCaptureDeviceImmediately({
  required bool isDesktopRuntime,
  required bool isCameraOpen,
}) {
  return !isDesktopRuntime || isCameraOpen;
}