screen_capturer_sck.h (1313B)
1 /* 2 * Copyright (c) 2024 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_ 12 #define MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_ 13 14 #include <memory> 15 16 #include "modules/desktop_capture/desktop_capture_options.h" 17 #include "modules/desktop_capture/desktop_capturer.h" 18 19 namespace webrtc { 20 21 // Returns true if the ScreenCaptureKit capturer is available. 22 bool ScreenCapturerSckAvailable(); 23 24 // Returns true if the ScreenCaptureKit capturer is available using 25 // SCContentSharingPicker for picking a generic source. 26 bool GenericCapturerSckWithPickerAvailable(); 27 28 // A DesktopCapturer implementation that uses ScreenCaptureKit. 29 std::unique_ptr<DesktopCapturer> CreateScreenCapturerSck( 30 const DesktopCaptureOptions& options); 31 32 std::unique_ptr<DesktopCapturer> CreateGenericCapturerSck( 33 const DesktopCaptureOptions& options); 34 35 } // namespace webrtc 36 37 #endif // MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_