Membrane.HTTPAdaptiveStream.Manifest.Track.Config (Membrane HTTP Adaptive Stream plugin v0.3.0) View Source
Track configuration.
Link to this section Summary
Link to this section Types
Specs
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 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 keept above that time, while the oldest segmentsare removed whenever possiblepersist?- determines whether the entire track contents should be available after the streaming finishes