Trait RTPBase Depayload Impl
Source pub trait RTPBaseDepayloadImpl: ElementImpl + ObjectSubclass<Type: IsA<RTPBaseDepayload>> {
// Provided methods
fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError> { ... }
fn handle_event(&self, event: Event) -> bool { ... }
fn packet_lost(&self, event: &EventRef) -> bool { ... }
fn process_rtp_packet(
&self,
rtp_buffer: &RTPBuffer<'_, Readable>,
) -> Option<Buffer> { ... }
}Provided Methods§
Sourcefn handle_event(&self, event: Event) -> bool
fn handle_event(&self, event: Event) -> bool
custom event handling
Sourcefn packet_lost(&self, event: &EventRef) -> bool
fn packet_lost(&self, event: &EventRef) -> bool
signal the depayloader about packet loss
Sourcefn process_rtp_packet(
&self,
rtp_buffer: &RTPBuffer<'_, Readable>,
) -> Option<Buffer>
fn process_rtp_packet( &self, rtp_buffer: &RTPBuffer<'_, Readable>, ) -> Option<Buffer>
Same as the process virtual function, but slightly more
efficient, since it is passed the rtp buffer structure that has already
been mapped (with GST_MAP_READ) by the base class and thus does not have
to be mapped again by the subclass. Can be used by the subclass to process
incoming rtp packets. If the subclass returns a buffer without a valid
timestamp, the timestamp of the input buffer will be applied to the result
buffer and the output buffer will be pushed out. If this function returns
None, nothing is pushed out. Since: 1.6.
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.