pub struct RtpRewriteBridgeParams {
pub ssrc_offset: u32,
pub fixed_out_ssrc: Option<u32>,
pub payload_type: Option<u8>,
pub dtmf_payload_type: Option<(u8, u8)>,
pub initial_sequence_number: Option<u16>,
pub initial_timestamp_offset: Option<u32>,
pub strip_extensions: bool,
}Fields§
§ssrc_offset: u32§fixed_out_ssrc: Option<u32>When Some, every forwarded packet’s SSRC is fixed to this value
(overrides ssrc_offset). Used for WebRTC ↔ RTP so the destination
peer sees the SSRC it negotiated in SDP.
payload_type: Option<u8>§dtmf_payload_type: Option<(u8, u8)>RFC 4733 telephone-event (DTMF) payload-type remap: (src_pt, dst_pt).
When Some, packets whose payload type equals src_pt are rewritten
to dst_pt (in addition to the regular audio payload_type rewrite).
Needed when the two legs negotiated different DTMF payload types.
initial_sequence_number: Option<u16>§initial_timestamp_offset: Option<u32>§strip_extensions: boolWhen true, extension headers are stripped before forwarding.
WebRTC → RTP: the RTP peer doesn’t understand WebRTC extensions
(abs-send-time, audio-level, …) and may misparse the payload.
Trait Implementations§
Source§impl Clone for RtpRewriteBridgeParams
impl Clone for RtpRewriteBridgeParams
Source§fn clone(&self) -> RtpRewriteBridgeParams
fn clone(&self) -> RtpRewriteBridgeParams
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 moreimpl Copy for RtpRewriteBridgeParams
Source§impl Debug for RtpRewriteBridgeParams
impl Debug for RtpRewriteBridgeParams
Source§impl Default for RtpRewriteBridgeParams
impl Default for RtpRewriteBridgeParams
Source§fn default() -> RtpRewriteBridgeParams
fn default() -> RtpRewriteBridgeParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RtpRewriteBridgeParams
impl RefUnwindSafe for RtpRewriteBridgeParams
impl Send for RtpRewriteBridgeParams
impl Sync for RtpRewriteBridgeParams
impl Unpin for RtpRewriteBridgeParams
impl UnsafeUnpin for RtpRewriteBridgeParams
impl UnwindSafe for RtpRewriteBridgeParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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