Module stream

Module stream 

Source
Expand description

Screen capture stream functionality

This module provides the core streaming API for capturing screen content.

§Main Components

§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 ScreenCaptureKit streams
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 SCStream implementation