#[non_exhaustive]pub struct WebvttDestinationSettings {
pub accessibility: Option<WebvttAccessibilitySubs>,
pub style_passthrough: Option<WebvttStylePassthrough>,
}
Expand description
Settings related to WebVTT captions. WebVTT is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html.
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.accessibility: Option<WebvttAccessibilitySubs>
If the WebVTT captions track is intended to provide accessibility for people who are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When you do, MediaConvert adds accessibility attributes to your output HLS or DASH manifest. For HLS manifests, MediaConvert adds the following accessibility attributes under EXT-X-MEDIA for this track: CHARACTERISTICS=“public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound” and AUTOSELECT=“YES”. For DASH manifests, MediaConvert adds the following in the adaptation set for this track:
style_passthrough: Option<WebvttStylePassthrough>
To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. MediaConvert uses default settings when style and position information is missing from your input captions. To recreate the input captions exactly: Set Style passthrough to Strict. MediaConvert automatically applies timing adjustments, including adjustments for frame rate conversion, ad avails, and input clipping. Your input captions format must be WebVTT. To ignore the style and position information from your input captions and use simplified output captions: Set Style passthrough to Disabled, or leave blank.
Implementations§
source§impl WebvttDestinationSettings
impl WebvttDestinationSettings
sourcepub fn accessibility(&self) -> Option<&WebvttAccessibilitySubs>
pub fn accessibility(&self) -> Option<&WebvttAccessibilitySubs>
If the WebVTT captions track is intended to provide accessibility for people who are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When you do, MediaConvert adds accessibility attributes to your output HLS or DASH manifest. For HLS manifests, MediaConvert adds the following accessibility attributes under EXT-X-MEDIA for this track: CHARACTERISTICS=“public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound” and AUTOSELECT=“YES”. For DASH manifests, MediaConvert adds the following in the adaptation set for this track:
sourcepub fn style_passthrough(&self) -> Option<&WebvttStylePassthrough>
pub fn style_passthrough(&self) -> Option<&WebvttStylePassthrough>
To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. MediaConvert uses default settings when style and position information is missing from your input captions. To recreate the input captions exactly: Set Style passthrough to Strict. MediaConvert automatically applies timing adjustments, including adjustments for frame rate conversion, ad avails, and input clipping. Your input captions format must be WebVTT. To ignore the style and position information from your input captions and use simplified output captions: Set Style passthrough to Disabled, or leave blank.
source§impl WebvttDestinationSettings
impl WebvttDestinationSettings
sourcepub fn builder() -> WebvttDestinationSettingsBuilder
pub fn builder() -> WebvttDestinationSettingsBuilder
Creates a new builder-style object to manufacture WebvttDestinationSettings
.
Trait Implementations§
source§impl Clone for WebvttDestinationSettings
impl Clone for WebvttDestinationSettings
source§fn clone(&self) -> WebvttDestinationSettings
fn clone(&self) -> WebvttDestinationSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WebvttDestinationSettings
impl Debug for WebvttDestinationSettings
source§impl PartialEq for WebvttDestinationSettings
impl PartialEq for WebvttDestinationSettings
source§fn eq(&self, other: &WebvttDestinationSettings) -> bool
fn eq(&self, other: &WebvttDestinationSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WebvttDestinationSettings
Auto Trait Implementations§
impl Freeze for WebvttDestinationSettings
impl RefUnwindSafe for WebvttDestinationSettings
impl Send for WebvttDestinationSettings
impl Sync for WebvttDestinationSettings
impl Unpin for WebvttDestinationSettings
impl UnwindSafe for WebvttDestinationSettings
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more