pub struct OpusPacketizer { /* private fields */ }Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
Packetizes Opus audio into RTP: each Opus packet is carried verbatim as the payload of one RTP packet (RFC 7587 — Opus is self-delimiting, so there is no payload descriptor). The 48 kHz media clock means the caller passes a timestamp already scaled to 48 kHz.
Implementations§
Trait Implementations§
Source§impl Clone for OpusPacketizer
impl Clone for OpusPacketizer
Source§fn clone(&self) -> OpusPacketizer
fn clone(&self) -> OpusPacketizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OpusPacketizer
impl RefUnwindSafe for OpusPacketizer
impl Send for OpusPacketizer
impl Sync for OpusPacketizer
impl Unpin for OpusPacketizer
impl UnsafeUnpin for OpusPacketizer
impl UnwindSafe for OpusPacketizer
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