pub struct SenderOptions { /* private fields */ }Expand description
Implementations§
Source§impl SenderOptions
impl SenderOptions
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Replace the advertised name; an empty name lets the SDK choose.
Sourcepub fn clear_groups(self) -> Self
pub fn clear_groups(self) -> Self
Inherit discovery groups from the NDI configuration.
Sourcepub fn clear_config(self) -> Self
pub fn clear_config(self) -> Self
Remove the per-instance Advanced configuration override.
Sourcepub fn configured_name(&self) -> &str
pub fn configured_name(&self) -> &str
Requested advertised name; an empty name lets the SDK choose.
Sourcepub fn configured_groups(&self) -> Option<&[String]>
pub fn configured_groups(&self) -> Option<&[String]>
Requested discovery groups, or None to inherit the NDI configuration.
Sourcepub fn configured_clock_video(&self) -> bool
pub fn configured_clock_video(&self) -> bool
Whether video clocking was requested.
Sourcepub fn configured_clock_audio(&self) -> bool
pub fn configured_clock_audio(&self) -> bool
Whether audio clocking was requested.
Sourcepub fn configured_config(&self) -> Option<&AdvancedConfig>
pub fn configured_config(&self) -> Option<&AdvancedConfig>
The stored Advanced configuration handle, if any.
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
A sender advertised as name, which the SDK chooses when it is empty,
with the default settings.
Sourcepub fn groups(self, groups: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn groups(self, groups: impl IntoIterator<Item = impl Into<String>>) -> Self
Set a non-empty list of discovery groups the sender is advertised in,
replacing the NDI configuration. Use Self::clear_groups to inherit
the configuration. Creation refuses empty elements and elements
containing a comma or NUL.
Sourcepub fn clock_video(self, clock: bool) -> Self
pub fn clock_video(self, clock: bool) -> Self
Set whether video submissions are paced to the frame rate, rather than returning at once.
Sourcepub fn clock_audio(self, clock: bool) -> Self
pub fn clock_audio(self, clock: bool) -> Self
Set whether audio submissions are paced to the sample rate, rather than returning at once.
Sourcepub fn config(self, config: AdvancedConfig) -> Self
pub fn config(self, config: AdvancedConfig) -> Self
Create the sender with this per-instance Advanced SDK configuration, which it keeps for as long as it lives.
Sender::new then needs an Advanced runtime, and a build with the
Advanced SDK.