Windows screen sharing (#34223)
Release Notes: - N/A --------- Co-authored-by: localcc <work@localcc.cc> Co-authored-by: Peter Tripp <petertripp@gmail.com>
This commit is contained in:
parent
f82fdaa0a4
commit
7588280915
10 changed files with 57 additions and 51 deletions
|
@ -26,4 +26,7 @@ pub(crate) use wrapper::*;
|
|||
|
||||
pub(crate) use windows::Win32::Foundation::HWND;
|
||||
|
||||
#[cfg(feature = "screen-capture")]
|
||||
pub(crate) type PlatformScreenCaptureFrame = scap::frame::Frame;
|
||||
#[cfg(not(feature = "screen-capture"))]
|
||||
pub(crate) type PlatformScreenCaptureFrame = ();
|
||||
|
|
|
@ -434,16 +434,14 @@ impl Platform for WindowsPlatform {
|
|||
|
||||
#[cfg(feature = "screen-capture")]
|
||||
fn is_screen_capture_supported(&self) -> bool {
|
||||
false
|
||||
true
|
||||
}
|
||||
|
||||
#[cfg(feature = "screen-capture")]
|
||||
fn screen_capture_sources(
|
||||
&self,
|
||||
) -> oneshot::Receiver<Result<Vec<Box<dyn ScreenCaptureSource>>>> {
|
||||
let (mut tx, rx) = oneshot::channel();
|
||||
tx.send(Err(anyhow!("screen capture not implemented"))).ok();
|
||||
rx
|
||||
crate::platform::scap_screen_capture::scap_screen_sources(&self.foreground_executor)
|
||||
}
|
||||
|
||||
fn active_window(&self) -> Option<AnyWindowHandle> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue