Support ScreenCapture loopback
This commit is contained in:
parent
582e93c41d
commit
e851e41b6e
5 changed files with 456 additions and 1 deletions
|
|
@ -625,8 +625,15 @@ mod platform_impl {
|
|||
Stream as CoreAudioStream, SupportedInputConfigs as CoreAudioSupportedInputConfigs,
|
||||
SupportedOutputConfigs as CoreAudioSupportedOutputConfigs,
|
||||
};
|
||||
#[cfg(any(target_os = "macos"))]
|
||||
pub use crate::host::screencapturekit::{
|
||||
Device as ScreenCaptureKitDevice, Devices as ScreenCaptureKitDevices,
|
||||
Host as ScreenCaptureKitHost, Stream as ScreenCaptureKitStream,
|
||||
SupportedInputConfigs as ScreenCaptureKitSupportedInputConfigs,
|
||||
SupportedOutputConfigs as ScreenCaptureKitSupportedOutputConfigs,
|
||||
};
|
||||
|
||||
impl_platform_host!(CoreAudio coreaudio "CoreAudio");
|
||||
impl_platform_host!(CoreAudio coreaudio "CoreAudio", #[cfg(any(target_os = "macos"))] ScreenCaptureKit screencapturekit "ScreenCaptureKit");
|
||||
|
||||
/// The default host for the current compilation target platform.
|
||||
pub fn default_host() -> Host {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue