Struct CatalogTrack
pub struct CatalogTrack {Show 30 fields
pub namespace: Option<String>,
pub name: String,
pub packaging: Packaging,
pub event_type: Option<String>,
pub role: Option<TrackRole>,
pub is_live: bool,
pub target_latency: Option<u64>,
pub label: Option<String>,
pub render_group: Option<u64>,
pub alt_group: Option<u64>,
pub init_ref: Option<String>,
pub depends: Option<Vec<Dependency>>,
pub temporal_id: Option<u32>,
pub spatial_id: Option<u32>,
pub codec: Option<String>,
pub mime_type: Option<String>,
pub framerate: Option<f64>,
pub timescale: Option<u64>,
pub bitrate: Option<u64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub sample_rate: Option<u32>,
pub channel_config: Option<String>,
pub display_width: Option<u32>,
pub display_height: Option<u32>,
pub lang: Option<String>,
pub parent_name: Option<String>,
pub track_duration: Option<u64>,
pub max_grp_sap_starting_type: Option<u32>,
pub max_obj_sap_starting_type: Option<u32>,
}Fields§
§namespace: Option<String>§name: String§packaging: Packaging§event_type: Option<String>§role: Option<TrackRole>§is_live: bool§target_latency: Option<u64>§label: Option<String>§render_group: Option<u64>§alt_group: Option<u64>§init_ref: Option<String>§depends: Option<Vec<Dependency>>§temporal_id: Option<u32>§spatial_id: Option<u32>§codec: Option<String>§mime_type: Option<String>§framerate: Option<f64>§timescale: Option<u64>§bitrate: Option<u64>§width: Option<u32>§height: Option<u32>§sample_rate: Option<u32>§channel_config: Option<String>§display_width: Option<u32>§display_height: Option<u32>§lang: Option<String>§parent_name: Option<String>§track_duration: Option<u64>§max_grp_sap_starting_type: Option<u32>§max_obj_sap_starting_type: Option<u32>Implementations§
§impl Track
impl Track
pub fn has_role(&self, role: KnownTrackRole) -> bool
pub fn dependencies<'a>(
&'a self,
tracks: &'a [Track],
) -> impl Iterator<Item = &'a Track>
pub fn dependencies<'a>( &'a self, tracks: &'a [Track], ) -> impl Iterator<Item = &'a Track>
The tracks of tracks this track’s depends refers to
(draft-ietf-moq-msf-02 §5.2.15): the one each name names and every
other track of each renderGroup.
pub fn new(name: &str, packaging: impl Into<Packaging>, is_live: bool) -> Track
pub fn new(name: &str, packaging: impl Into<Packaging>, is_live: bool) -> Track
The fields draft-ietf-moq-msf-02 §5.2 requires of every track object.
pub fn cmaf_sibling(
&self,
name: &str,
mime_type: &str,
alt_group: Option<u64>,
) -> Track
pub fn cmaf_sibling( &self, name: &str, mime_type: &str, alt_group: Option<u64>, ) -> Track
Every group and object starts on a SAP type 1 sample
(draft-ietf-moq-cmsf-01 §3.5.2) and altGroup names the switching set
(§3.2). The sibling does not inherit initRef; set its CMAF header
with set_inline_init_data (§3.1).
pub fn set_inline_init_data(&mut self, data: String) -> InitData
pub fn set_inline_init_data(&mut self, data: String) -> InitData
Points initRef at the returned inline initDataList entry; data
must already be Base64 (draft-ietf-moq-cmsf-01 §3.1). The entry id is
the track name, so ids stay unique as long as track names do.
Trait Implementations§
§impl<'de> Deserialize<'de> for Track
impl<'de> Deserialize<'de> for Track
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Track, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Track, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Track
impl Serialize for Track
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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