Struct webrtc::track::track_local::TrackLocalContext
source · pub struct TrackLocalContext { /* private fields */ }
Expand description
TrackLocalContext is the Context passed when a TrackLocal has been Binded/Unbinded from a PeerConnection, and used in Interceptors.
Implementations§
source§impl TrackLocalContext
impl TrackLocalContext
sourcepub fn codec_parameters(&self) -> &[RTCRtpCodecParameters]
pub fn codec_parameters(&self) -> &[RTCRtpCodecParameters]
codec_parameters returns the negotiated RTPCodecParameters. These are the codecs supported by both PeerConnections and the SSRC/PayloadTypes
sourcepub fn header_extensions(&self) -> &[RTCRtpHeaderExtensionParameters]
pub fn header_extensions(&self) -> &[RTCRtpHeaderExtensionParameters]
header_extensions returns the negotiated RTPHeaderExtensionParameters. These are the header extensions supported by both PeerConnections and the SSRC/PayloadTypes
sourcepub fn ssrc(&self) -> SSRC
pub fn ssrc(&self) -> SSRC
ssrc requires the negotiated SSRC of this track This track may have multiple if RTX is enabled
sourcepub fn write_stream(&self) -> Option<Arc<dyn TrackLocalWriter + Send + Sync>>
pub fn write_stream(&self) -> Option<Arc<dyn TrackLocalWriter + Send + Sync>>
write_stream returns the write_stream for this TrackLocal. The implementer writes the outbound media packets to it
Trait Implementations§
source§impl Clone for TrackLocalContext
impl Clone for TrackLocalContext
source§fn clone(&self) -> TrackLocalContext
fn clone(&self) -> TrackLocalContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrackLocalContext
impl Debug for TrackLocalContext
source§impl Default for TrackLocalContext
impl Default for TrackLocalContext
source§fn default() -> TrackLocalContext
fn default() -> TrackLocalContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TrackLocalContext
impl Send for TrackLocalContext
impl Sync for TrackLocalContext
impl Unpin for TrackLocalContext
impl !UnwindSafe for TrackLocalContext
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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