View Source Membrane.HTTPAdaptiveStream.Manifest.Track.Config (Membrane HTTP Adaptive Stream plugin v0.7.0)
Track configuration.
Link to this section Summary
Link to this section Types
@type t() :: %Membrane.HTTPAdaptiveStream.Manifest.Track.Config{ content_type: :audio | :video, header_extension: String.t(), id: Membrane.HTTPAdaptiveStream.Manifest.Track.id_t(), persist?: boolean(), segment_extension: String.t(), target_segment_duration: Membrane.Time.t() | Ratio.t(), target_window_duration: Membrane.Time.t() | Ratio.t(), track_name: String.t() }
Track configuration consists of the following fields:
id- identifies the track, will be serialized and attached to names of manifests, headers and segmentscontent_type- either audio or videoheader_extension- extension of the header file (for example .mp4 for CMAF)segment_extension- extension of the segment files (for example .m4s for CMAF)target_segment_duration- expected duration of each segmenttarget_window_duration- track manifest duration is kept above that time, while the oldest segmentsare removed whenever possiblepersist?- determines whether the entire track contents should be available after the streaming finishes