logo
pub struct HlsPackage {
    pub ad_markers: Option<String>,
    pub ad_triggers: Option<Vec<String>>,
    pub ads_on_delivery_restrictions: Option<String>,
    pub encryption: Option<HlsEncryption>,
    pub include_iframe_only_stream: Option<bool>,
    pub playlist_type: Option<String>,
    pub playlist_window_seconds: Option<i64>,
    pub program_date_time_interval_seconds: Option<i64>,
    pub segment_duration_seconds: Option<i64>,
    pub stream_selection: Option<StreamSelection>,
    pub use_audio_rendition_group: Option<bool>,
}
Expand description

An HTTP Live Streaming (HLS) packaging configuration.

Fields

ad_markers: Option<String>

This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.

ad_triggers: Option<Vec<String>>ads_on_delivery_restrictions: Option<String>encryption: Option<HlsEncryption>include_iframe_only_stream: Option<bool>

When enabled, an I-Frame only stream will be included in the output.

playlist_type: Option<String>

The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.

playlist_window_seconds: Option<i64>

Time window (in seconds) contained in each parent manifest.

program_date_time_interval_seconds: Option<i64>

The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.

segment_duration_seconds: Option<i64>

Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.

stream_selection: Option<StreamSelection>use_audio_rendition_group: Option<bool>

When enabled, audio streams will be placed in rendition groups in the output.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more