pub trait RTSPMediaFactoryImpl: RTSPMediaFactoryImplExt + ObjectImpl + Send + Sync {
    // Provided methods
    fn gen_key(&self, url: &RTSPUrl) -> Option<GString> { ... }
    fn create_element(&self, url: &RTSPUrl) -> Option<Element> { ... }
    fn construct(&self, url: &RTSPUrl) -> Option<RTSPMedia> { ... }
    fn create_pipeline(&self, media: &RTSPMedia) -> Option<Pipeline> { ... }
    fn configure(&self, media: &RTSPMedia) { ... }
    fn media_constructed(&self, media: &RTSPMedia) { ... }
    fn media_configure(&self, media: &RTSPMedia) { ... }
}

Provided Methods§

source

fn gen_key(&self, url: &RTSPUrl) -> Option<GString>

source

fn create_element(&self, url: &RTSPUrl) -> Option<Element>

Construct and return a gst::Element that is a gst::Bin containing the elements to use for streaming the media.

The bin should contain payloaders pay`d` for each stream. The default implementation of this function returns the bin created from the launch parameter.

§url

the url used

§Returns

a new gst::Element.

source

fn construct(&self, url: &RTSPUrl) -> Option<RTSPMedia>

Construct the media object and create its streams. Implementations should create the needed gstreamer elements and add them to the result object. No state changes should be performed on them yet.

One or more GstRTSPStream objects should be created from the result with gst_rtsp_media_create_stream ().

After the media is constructed, it can be configured and then prepared with gst_rtsp_media_prepare ().

The returned media will be locked and must be unlocked afterwards.

§url

the url used

§Returns

a new RTSPMedia if the media could be prepared.

source

fn create_pipeline(&self, media: &RTSPMedia) -> Option<Pipeline>

source

fn configure(&self, media: &RTSPMedia)

source

fn media_constructed(&self, media: &RTSPMedia)

source

fn media_configure(&self, media: &RTSPMedia)

Object Safety§

This trait is not object safe.

Implementors§