feat: macos, screencapturekit

1. Add new feature `screencapturekit`.
2. Remove `unwrap()` in mod `screencapturekit`.
No all `unwrap()` in this crate are removed.
3. Add selector check before calling it.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-11-22 21:09:54 +08:00
parent e851e41b6e
commit f5b0c718de
5 changed files with 52 additions and 19 deletions

View file

@ -24,7 +24,7 @@ pub(crate) mod jack;
pub(crate) mod null;
#[cfg(target_os = "android")]
pub(crate) mod oboe;
#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "screencapturekit"))]
pub(crate) mod screencapturekit;
#[cfg(windows)]
pub(crate) mod wasapi;