Expand description
Screen capture stream functionality
This module provides the core streaming API for capturing screen content.
§Main Components
SCStream- The main capture streamconfiguration::SCStreamConfiguration- Stream configuration (resolution, FPS, etc.)content_filter::SCContentFilter- Filter for selecting what to captureoutput_trait::SCStreamOutputTrait- Trait for receiving captured framesoutput_type::SCStreamOutputType- Type of output (screen, audio)
§Example
use screencapturekit::prelude::*;
let filter = SCContentFilter::builder()
.display(display)
.exclude_windows(&[])
.build();
let mut config = SCStreamConfiguration::default();
config.set_width(1920);
config.set_height(1080);
let mut stream = SCStream::new(&filter, &config);
stream.start_capture()?;Re-exports§
pub use delegate_trait::ErrorHandler;pub use delegate_trait::SCStreamDelegateTrait as SCStreamDelegate;pub use output_trait::SCStreamOutputTrait as SCStreamOutput;pub use sc_stream::SCStream;
Modules§
- configuration
- content_
filter - Content filter for
ScreenCaptureKitstreams - delegate_
trait - Delegate trait for stream lifecycle events
- output_
trait - Output handler trait for stream callbacks
- output_
type - Output type enumeration for stream handlers
- sc_
stream - Swift FFI based
SCStreamimplementation