pub trait RTPHeaderExtensionExtManual: Sealed + IsA<RTPHeaderExtension> + 'static {
    // Provided methods
    fn read(
        &self,
        read_flags: RTPHeaderExtensionFlags,
        data: &[u8],
        buffer: &mut BufferRef
    ) -> bool { ... }
    fn write(
        &self,
        input_meta: &Buffer,
        write_flags: RTPHeaderExtensionFlags,
        output: &mut BufferRef,
        data: &mut [u8]
    ) -> Result<usize, BoolError> { ... }
    fn set_caps_from_attributes(&self, caps: &mut CapsRef) -> bool { ... }
    fn set_caps_from_attributes_helper(
        &self,
        caps: &mut CapsRef,
        attributes: &str
    ) -> bool { ... }
    fn update_non_rtp_src_caps(&self, caps: &mut CapsRef) -> bool { ... }
}

Provided Methods§

source

fn read( &self, read_flags: RTPHeaderExtensionFlags, data: &[u8], buffer: &mut BufferRef ) -> bool

Read the RTP header extension from data.

§read_flags

RTPHeaderExtensionFlags for how the extension should be written

§data

location to read the rtp header extension from

§buffer

a gst::Buffer to modify if necessary

§Returns

whether the extension could be read from data

source

fn write( &self, input_meta: &Buffer, write_flags: RTPHeaderExtensionFlags, output: &mut BufferRef, data: &mut [u8] ) -> Result<usize, BoolError>

Writes the RTP header extension to data using information available from the input_meta. data will be sized to be at least the value returned from RTPHeaderExtensionExt::max_size().

§input_meta

the input gst::Buffer to read information from if necessary

§write_flags

RTPHeaderExtensionFlags for how the extension should be written

§output

output RTP gst::Buffer

§data

location to write the rtp header extension into

§Returns

the size of the data written, < 0 on failure

source

fn set_caps_from_attributes(&self, caps: &mut CapsRef) -> bool

RTPHeaderExtensionExt::set_id() must have been called with a valid extension id that is contained in these caps.

The only current known caps format is based on the SDP standard as produced by gst_sdp_media_attributes_to_caps().

§caps

writable gst::Caps to modify

§Returns

whether the configured attributes on self can successfully be set on caps

source

fn set_caps_from_attributes_helper( &self, caps: &mut CapsRef, attributes: &str ) -> bool

Helper implementation for GstRTPExtensionClass::set_caps_from_attributes that sets the self uri on caps with the specified extension id as required for sdp gst::Caps.

Requires that the extension does not have any attributes or direction advertised in caps.

§caps

gst::Caps to write fields into

§Returns

whether the self attributes could be set on caps.

source

fn update_non_rtp_src_caps(&self, caps: &mut CapsRef) -> bool

Updates depayloader src caps based on the information received in RTP header. caps must be writable as this function may modify them.

§caps

src gst::Caps to modify

§Returns

whether caps were modified successfully

Object Safety§

This trait is not object safe.

Implementors§