Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

Merge branch 'linux-4-media' into linux-5-storage

Jochen Kirstätterbc5591a38583
diff --cc desktop/app/src/core_host.rs
index f281bf6,527c647..58ecd0a
--- a/desktop/app/src/core_host.rs
+++ b/desktop/app/src/core_host.rs
@@@ -124,10 -121,26 +124,20 @@@ pub fn compute_capabilities
caps.push(nectarlink_core::DECK_ACTIONS.into());
caps.push(nectarlink_core::PC_AUDIO.into());
caps.push(nectarlink_core::RECORDER.into());
+ #[cfg(windows)]
caps.push(nectarlink_core::WEBCAM_VIRTUAL.into());
+ #[cfg(target_os = "linux")]
+ if crate::win::vcam::dll_path().is_some() || crate::win::vcam::is_registered() {
+ caps.push(nectarlink_core::WEBCAM_VIRTUAL.into());
+ }
+ #[cfg(windows)]
caps.push(nectarlink_core::MEDIA_STREAM.into());
+ #[cfg(target_os = "linux")]
+ if crate::win::window_capture::is_available() && crate::pc_mirror::is_capture_available() {
+ caps.push(nectarlink_core::MEDIA_STREAM.into());
+ }
caps.push(nectarlink_core::MIC_LISTEN.into());
}
- #[cfg(windows)]
- {
- caps.push(nectarlink_core::STORAGE_MOUNT.into());
- caps.push(nectarlink_core::STORAGE_READ.into());
- caps.push(nectarlink_core::STORAGE_WRITE.into());
- }
#[cfg(any(windows, target_os = "linux"))]
let mut pc_mirror_enabled = crate::pc_mirror::is_active();
#[cfg(any(windows, target_os = "linux"))]