Skip to main content

Module receiver

Module receiver 

Source
Expand description

NDI receiving functionality for video, audio, and metadata.

§Monitoring Connection Status

The receiver can monitor connection status changes:

// In real usage, obtain the source from Finder::find_sources().
let options = ReceiverOptions::builder(source)
    .bandwidth(ReceiverBandwidth::MetadataOnly)
    .build();
let receiver = Receiver::new(&ndi, &options)?;

// Poll for status changes
if let Some(status) = receiver.poll_status_change(Duration::from_millis(1000))? {
    println!("Active connections: {}", status.connections);
}

Structs§

Capture
A typed view over a Receiver for capturing frames of one kind.
ConnectionStats
Connection and performance statistics for a receiver.
Receiver
An owned NDI receiver. The default mode permits all raw capture kinds. FrameSync privately changes the mode while retaining the same resource core.
ReceiverOptions
ReceiverOptionsBuilder
Builder for configuring a ReceiverOptions with ergonomic method chaining
ReceiverStatus
An SDK status-change notification and the current connection count.
Tally

Enums§

FrameSyncAttached
Receiver mode held exclusively by crate::FrameSync, without raw video access.
RawCapture
Ordinary receiver mode, permitting raw video capture.
ReceiverBandwidth
Operational bandwidth modes for receivers.
ReceiverColorFormat
Operational color formats for received video frames.

Traits§

ReceiverMode
Sealed receiver capability mode. Common controls, audio, and metadata work in both modes.