Skip to main content

Bridge

Trait Bridge 

Source
pub trait Bridge: Send {
    // Required method
    fn push(&mut self, frame: Frame) -> Result<()>;
}
Expand description

Bridges depacketized media frames from str0m to a hang broadcast track.

One bridge per m= line on the ingest side. The session loop calls Bridge::push once per MediaData event with the codec frame; the bridge handles any codec-specific transformations (e.g. Annex-B to AVCC for H.264) and forwards the frame into the matching moq-mux importer.

Required Methods§

Source

fn push(&mut self, frame: Frame) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Bridge for moq_rtc::codec::h264::Bridge

Source§

impl Bridge for moq_rtc::codec::opus::Bridge

Source§

impl Bridge for moq_rtc::codec::vp8::Bridge

Source§

impl Bridge for moq_rtc::codec::vp9::Bridge