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
Receiverfor capturing frames of one kind. - Connection
Stats - Connection and performance statistics for a receiver.
- Receiver
- Receiver
Options - Receiver
Options Builder - Builder for configuring a ReceiverOptions with ergonomic method chaining
- Receiver
Status - Tally
Enums§
- Receiver
Bandwidth - Operational bandwidth modes for receivers.
- Receiver
Color Format - Operational color formats for received video frames.