#[non_exhaustive]pub struct VideoTrack {
pub id: u64,
pub identity: String,
pub member_id: Option<String>,
pub source: VideoSource,
pub track_sid: String,
pub codec: Option<VideoCodec>,
pub width: u32,
pub height: u32,
pub muted: bool,
pub paused: Option<VideoPause>,
pub layers: Vec<VideoLayerInfo>,
pub unsupported: bool,
}Expand description
A remote video track (camera or screen) of a participant.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64The engine’s stable id for the track in this call (the track of its
VideoRecvItems).
identity: StringThe publisher’s engine identity (p_…).
member_id: Option<String>The publisher’s Sew member, once the keys’ roster or the call socket named it.
source: VideoSourceCamera or screen.
track_sid: StringThe engine’s track sid (TR_…).
codec: Option<VideoCodec>The codec: the negotiated payload type of the track’s packets once they arrive, else
the first codec of the publisher’s TrackInfo (its primary, then its backups) this
device’s media connection receives. None when neither says yet (a publisher that does
not name its codec in TrackInfo until its first packet).
width: u32The publisher’s size, from its TrackInfo (0 when it did not say).
height: u32The publisher’s size, from its TrackInfo (0 when it did not say).
muted: boolThe publisher muted the track (camera off).
paused: Option<VideoPause>The server paused the track for this member (None: not paused).
layers: Vec<VideoLayerInfo>The simulcast layers the publisher sends, lowest first.
unsupported: boolThis device can’t receive any of the codecs the publisher sends (e.g. an H.264-only
sender, and this device decodes VP8 only): no frames will come. codec is then the
publisher’s primary codec. Cleared by the track’s first packet.
Implementations§
Source§impl VideoTrack
impl VideoTrack
Sourcepub fn view(&self) -> VideoTrackView
pub fn view(&self) -> VideoTrackView
The snapshot’s view of the track.
Trait Implementations§
Source§impl Clone for VideoTrack
impl Clone for VideoTrack
Source§impl Debug for VideoTrack
impl Debug for VideoTrack
impl Eq for VideoTrack
Source§impl PartialEq for VideoTrack
impl PartialEq for VideoTrack
Source§impl Serialize for VideoTrack
impl Serialize for VideoTrack
impl StructuralPartialEq for VideoTrack
Auto Trait Implementations§
impl Forget for VideoTrack
impl Freeze for VideoTrack
impl Move for VideoTrack
impl RefUnwindSafe for VideoTrack
impl Send for VideoTrack
impl Sync for VideoTrack
impl Unpin for VideoTrack
impl UnsafeUnpin for VideoTrack
impl UnwindSafe for VideoTrack
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more