pub struct MultitrackTrack {
pub fourcc: Option<[u8; 4]>,
pub track_id: u8,
pub body: Vec<u8>,
}Expand description
One track inside a Multitrack body.
Fields§
§fourcc: Option<[u8; 4]>Per-track codec FourCC. Some(..) only when the surrounding
Multitrack::multitrack_type is ManyTracksManyCodecs — the
OneTrack / ManyTracks modes carry a shared FourCC on the outer
tag (see VideoTag::fourcc / AudioTag::audio_fourcc) and this
field is None. Set to Some(..) on build to opt into the
many-codecs layout for this track.
track_id: u8trackId = UI8. Per spec, trackId 0 is the default track described
by the top-level onMetaData; additional tracks use positive ids
(1, 2, 3, …). Values are identifiers only and do not imply ordering.
body: Vec<u8>Codec payload for this track (the shape the real PacketType + FourCC would produce as a single-track Enhanced-RTMP body). Empty for SequenceEnd tracks per spec.
Trait Implementations§
Source§impl Clone for MultitrackTrack
impl Clone for MultitrackTrack
Source§fn clone(&self) -> MultitrackTrack
fn clone(&self) -> MultitrackTrack
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 moreSource§impl Debug for MultitrackTrack
impl Debug for MultitrackTrack
impl Eq for MultitrackTrack
Source§impl PartialEq for MultitrackTrack
impl PartialEq for MultitrackTrack
Source§fn eq(&self, other: &MultitrackTrack) -> bool
fn eq(&self, other: &MultitrackTrack) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MultitrackTrack
Auto Trait Implementations§
impl Freeze for MultitrackTrack
impl RefUnwindSafe for MultitrackTrack
impl Send for MultitrackTrack
impl Sync for MultitrackTrack
impl Unpin for MultitrackTrack
impl UnsafeUnpin for MultitrackTrack
impl UnwindSafe for MultitrackTrack
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