Struct aws_sdk_mediapackagev2::types::Segment
source · #[non_exhaustive]pub struct Segment {
pub segment_duration_seconds: Option<i32>,
pub segment_name: Option<String>,
pub ts_use_audio_rendition_group: Option<bool>,
pub include_iframe_only_streams: Option<bool>,
pub ts_include_dvb_subtitles: Option<bool>,
pub scte: Option<Scte>,
pub encryption: Option<Encryption>,
}
Expand description
The segment configuration, including the segment name, duration, and other configuration values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.segment_duration_seconds: Option<i32>
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
segment_name: Option<String>
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
ts_use_audio_rendition_group: Option<bool>
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
include_iframe_only_streams: Option<bool>
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
ts_include_dvb_subtitles: Option<bool>
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
scte: Option<Scte>
The SCTE configuration options in the segment settings.
encryption: Option<Encryption>
The parameters for encrypting content.
Implementations§
source§impl Segment
impl Segment
sourcepub fn segment_duration_seconds(&self) -> Option<i32>
pub fn segment_duration_seconds(&self) -> Option<i32>
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
sourcepub fn segment_name(&self) -> Option<&str>
pub fn segment_name(&self) -> Option<&str>
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
sourcepub fn ts_use_audio_rendition_group(&self) -> Option<bool>
pub fn ts_use_audio_rendition_group(&self) -> Option<bool>
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
sourcepub fn include_iframe_only_streams(&self) -> Option<bool>
pub fn include_iframe_only_streams(&self) -> Option<bool>
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
sourcepub fn ts_include_dvb_subtitles(&self) -> Option<bool>
pub fn ts_include_dvb_subtitles(&self) -> Option<bool>
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
sourcepub fn encryption(&self) -> Option<&Encryption>
pub fn encryption(&self) -> Option<&Encryption>
The parameters for encrypting content.