pub trait RTSPOnvifMediaFactoryExt: IsA<RTSPOnvifMediaFactory> + 'static {
// Provided methods
fn backchannel_bandwidth(&self) -> u32 { ... }
fn backchannel_launch(&self) -> Option<GString> { ... }
fn has_backchannel_support(&self) -> bool { ... }
fn has_replay_support(&self) -> bool { ... }
fn set_backchannel_bandwidth(&self, bandwidth: u32) { ... }
fn set_backchannel_launch(&self, launch: Option<&str>) { ... }
fn set_replay_support(&self, has_replay_support: bool) { ... }
}
Expand description
Provided Methods§
Sourcefn backchannel_bandwidth(&self) -> u32
fn backchannel_bandwidth(&self) -> u32
Get the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
§Returns
the configured/supported backchannel bandwidth.
Sourcefn backchannel_launch(&self) -> Option<GString>
fn backchannel_launch(&self) -> Option<GString>
Get the gst_parse_launch()
pipeline description that will be used in the
default prepare vmethod for generating the ONVIF backchannel pipeline.
§Returns
the configured backchannel launch description. g_free()
after
usage.
Sourcefn has_backchannel_support(&self) -> bool
fn has_backchannel_support(&self) -> bool
Sourcefn has_replay_support(&self) -> bool
fn has_replay_support(&self) -> bool
Sourcefn set_backchannel_bandwidth(&self, bandwidth: u32)
fn set_backchannel_bandwidth(&self, bandwidth: u32)
Set the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
§bandwidth
the bandwidth in bits per second
Sourcefn set_backchannel_launch(&self, launch: Option<&str>)
fn set_backchannel_launch(&self, launch: Option<&str>)
The gst_parse_launch()
line to use for constructing the ONVIF backchannel
pipeline in the default prepare vmethod if requested by the client.
The pipeline description should return a GstBin as the toplevel element which can be accomplished by enclosing the description with brackets ‘(’ ‘)’.
The description should return a pipeline with a single depayloader named depay_backchannel. A caps query on the depayloader’s sinkpad should return all possible, complete RTP caps that are going to be supported. At least the payload type, clock-rate and encoding-name need to be specified.
Note: The pipeline part passed here must end in sinks that are not waiting
until pre-rolling before reaching the PAUSED state, i.e. setting
async=false on GstBaseSink
. Otherwise the whole media will not be able to
prepare.
§launch
the launch description
Sourcefn set_replay_support(&self, has_replay_support: bool)
fn set_replay_support(&self, has_replay_support: bool)
Set to true
if ONVIF replay is supported by the media factory.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.