Skip to main content

Module receiver

Module receiver 

Source
Expand description

NDI receiving functionality for video, audio, and metadata.

§Monitoring Tally & Connection Count

The receiver can monitor status changes including tally state and connection count:

// In real usage, you'd get the source from Finder::find_sources()
// let source = /* obtained from Finder */;
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))? {
    if let Some(tally) = status.tally {
        println!("Tally: program={program}, preview={preview}",
                 program = tally.on_program, preview = tally.on_preview);
    }
    if let Some(connections) = status.connections {
        println!("Active connections: {connections}");
    }
}

Structs§

Capture
A typed view over a Receiver for capturing frames of one kind.
ConnectionStats
Connection and performance statistics for a receiver.
Receiver
ReceiverOptions
ReceiverOptionsBuilder
Builder for configuring a ReceiverOptions with ergonomic method chaining
ReceiverStatus
Tally

Enums§

ReceiverBandwidth
Operational bandwidth modes for receivers.
ReceiverColorFormat
Operational color formats for received video frames.