Skip to main content

RTPBasePayloadImpl

Trait RTPBasePayloadImpl 

Source
pub trait RTPBasePayloadImpl: ElementImpl + ObjectSubclass<Type: IsA<RTPBasePayload>> {
    // Provided methods
    fn caps(&self, pad: &Pad, filter: Option<&Caps>) -> Caps { ... }
    fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError> { ... }
    fn handle_buffer(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError> { ... }
    fn query(&self, pad: &Pad, query: &mut QueryRef) -> bool { ... }
    fn sink_event(&self, event: Event) -> bool { ... }
    fn src_event(&self, event: Event) -> bool { ... }
}

Provided Methods§

Source

fn caps(&self, pad: &Pad, filter: Option<&Caps>) -> Caps

get desired caps

Source

fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError>

configure the payloader

Source

fn handle_buffer(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

process data

Source

fn query(&self, pad: &Pad, query: &mut QueryRef) -> bool

custom query handling

Source

fn sink_event(&self, event: Event) -> bool

custom event handling on the sinkpad

Source

fn src_event(&self, event: Event) -> bool

custom event handling on the srcpad

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§