Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(recording): use error code and domain instead of string for system stop detection
Richie McIlroy4e0c809e063e
diff --git a/crates/recording/src/sources/screen_capture/macos.rs b/crates/recording/src/sources/screen_capture/macos.rsindex 7fbbdcbe3..b68bf247b 100644--- a/crates/recording/src/sources/screen_capture/macos.rs+++ b/crates/recording/src/sources/screen_capture/macos.rs@@ -764,7 +764,8 @@ impl output_pipeline::VideoSource for VideoSource {}fn is_system_stop_error(err: &ns::Error) -> bool {- err.localized_description().to_string() == "Stream was stopped by the system"+ err.code() == sc::error::code::SYSTEM_STOPPED_STREAM as ns::Integer+ && err.domain().to_string() == sc::error::domain().to_string()}pub struct SystemAudioSourceConfig(