Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
query for continuity camera properly (#962)
Brendan Allan845040b1ff3e
diff --git a/crates/camera-avfoundation/src/lib.rs b/crates/camera-avfoundation/src/lib.rsindex 3b0fa130f..1f59ea626 100644--- a/crates/camera-avfoundation/src/lib.rs+++ b/crates/camera-avfoundation/src/lib.rs@@ -18,9 +18,14 @@ pub fn list_video_devices() -> arc::R<ns::Array<av::CaptureDevice>> {];if api::macos_available("14.0") {- device_types.push(unsafe { av::CaptureDeviceType::external().unwrap() })+ if let Some(typ) = unsafe { av::CaptureDeviceType::external() } {+ device_types.push(typ);+ }+ if let Some(typ) = unsafe { av::CaptureDeviceType::continuity_camera() } {+ device_types.push(typ);+ }} else {- device_types.push(av::CaptureDeviceType::external_unknown())+ device_types.push(av::CaptureDeviceType::external_unknown());}let device_types = ns::Array::from_slice(&device_types);