pub trait RTSPOnvifMediaFactoryExt: IsA<RTSPOnvifMediaFactory> + Sealed + '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

Trait containing all RTSPOnvifMediaFactory methods.

§Implementors

RTSPOnvifMediaFactory

Provided Methods§

source

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.

source

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.

source

fn has_backchannel_support(&self) -> bool

Returns true if an ONVIF backchannel is supported by the media factory.

§Returns

true if an ONVIF backchannel is supported by the media factory.

source

fn has_replay_support(&self) -> bool

§Returns

true if ONVIF replay is supported by the media factory.

source

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

source

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

source

fn set_replay_support(&self, has_replay_support: bool)

Set to true if ONVIF replay is supported by the media factory.

Object Safety§

This trait is not object safe.

Implementors§