pub struct RtpTransceiver { /* private fields */ }Implementations§
Source§impl RtpTransceiver
impl RtpTransceiver
pub fn id(&self) -> u64
pub fn kind(&self) -> MediaKind
pub fn sender_ssrc(&self) -> Option<u32>
pub fn sender_stream_id(&self) -> Option<String>
pub fn sender_track_id(&self) -> Option<String>
pub fn direction(&self) -> TransceiverDirection
pub fn set_direction(&self, direction: TransceiverDirection)
pub fn mid(&self) -> Option<String>
pub fn sender(&self) -> Option<Arc<RtpSender>>
pub fn set_sender(&self, sender: Option<Arc<RtpSender>>)
Sourcepub fn set_rtp_transport(&self, transport: Weak<RtpTransport>)
pub fn set_rtp_transport(&self, transport: Weak<RtpTransport>)
Set the RTP transport reference. Called by start_dtls when transport is established.
pub fn receiver(&self) -> Option<Arc<RtpReceiver>>
pub fn set_receiver(&self, receiver: Option<Arc<RtpReceiver>>)
Sourcepub fn update_payload_map(
&self,
new_map: HashMap<u8, RtpCodecParameters>,
) -> RtcResult<()>
pub fn update_payload_map( &self, new_map: HashMap<u8, RtpCodecParameters>, ) -> RtcResult<()>
Update payload type mapping for reinvite scenarios
Sourcepub fn update_extmap(&self, new_extmap: HashMap<u8, String>) -> RtcResult<()>
pub fn update_extmap(&self, new_extmap: HashMap<u8, String>) -> RtcResult<()>
Update RTP header extension mapping for reinvite scenarios
Sourcepub fn get_payload_map(&self) -> HashMap<u8, RtpCodecParameters>
pub fn get_payload_map(&self) -> HashMap<u8, RtpCodecParameters>
Get current payload type mapping (for testing/debugging)
Sourcepub fn get_extmap(&self) -> HashMap<u8, String>
pub fn get_extmap(&self) -> HashMap<u8, String>
Get current extmap (for testing/debugging)
Auto Trait Implementations§
impl !Freeze for RtpTransceiver
impl RefUnwindSafe for RtpTransceiver
impl Send for RtpTransceiver
impl Sync for RtpTransceiver
impl Unpin for RtpTransceiver
impl UnsafeUnpin for RtpTransceiver
impl UnwindSafe for RtpTransceiver
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