pub struct Producer { /* private fields */ }Expand description
Publishes encoded H.264 frames as an avc3 moq track.
Built on the async side so the track is advertised (and the catalog
registered) before the camera opens; this is what lets a subscriber
trigger capture on demand. moq_mux::codec::h264::Import handles
catalog registration and framing.
Implementations§
Source§impl Producer
impl Producer
pub fn new( broadcast: BroadcastProducer, catalog: Producer, ) -> Result<Self, Error>
Sourcepub fn track(&self) -> Option<&TrackProducer>
pub fn track(&self) -> Option<&TrackProducer>
Auto Trait Implementations§
impl !Freeze for Producer
impl RefUnwindSafe for Producer
impl Send for Producer
impl Sync for Producer
impl Unpin for Producer
impl UnsafeUnpin for Producer
impl UnwindSafe for Producer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more