pub struct Builder { /* private fields */ }
Expand description
A builder for CreateJobPlaylist
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a /
character, the section of the name before the last /
must be identical for all Name
objects. If you create more than one master playlist, the values of all Name
objects must be unique.
Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8
for HLSv3
and HLSv4
playlists, and .ism
and .ismc
for Smooth
playlists). If you include a file extension in Name
, the file name will have two extensions.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a /
character, the section of the name before the last /
must be identical for all Name
objects. If you create more than one master playlist, the values of all Name
objects must be unique.
Elastic Transcoder automatically appends the relevant file extension to the file name (.m3u8
for HLSv3
and HLSv4
playlists, and .ism
and .ismc
for Smooth
playlists). If you include a file extension in Name
, the file name will have two extensions.
sourcepub fn format(self, input: impl Into<String>) -> Self
pub fn format(self, input: impl Into<String>) -> Self
The format of the output playlist. Valid formats include HLSv3
, HLSv4
, and Smooth
.
sourcepub fn set_format(self, input: Option<String>) -> Self
pub fn set_format(self, input: Option<String>) -> Self
The format of the output playlist. Valid formats include HLSv3
, HLSv4
, and Smooth
.
sourcepub fn output_keys(self, input: impl Into<String>) -> Self
pub fn output_keys(self, input: impl Into<String>) -> Self
Appends an item to output_keys
.
To override the contents of this collection use set_output_keys
.
For each output in this job that you want to include in a master playlist, the value of the Outputs:Key
object.
-
If your output is not
HLS
or does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefix
andOutputs:Key
:OutputKeyPrefix
Outputs:Key
-
If your output is
HLSv3
and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of.m3u8
, and a series of.ts
files that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key
.m3u8OutputKeyPrefix
Outputs:Key
00000.ts -
If your output is
HLSv4
, has a segment duration set, and is included in anHLSv4
playlist, Elastic Transcoder creates an output playlist file with a file extension of_v4.m3u8
. If the output is video, Elastic Transcoder also creates an output file with an extension of_iframe.m3u8
:OutputKeyPrefix
Outputs:Key
_v4.m3u8OutputKeyPrefix
Outputs:Key
_iframe.m3u8OutputKeyPrefix
Outputs:Key
.ts
Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.
If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth
playlists, the Audio:Profile
, Video:Profile
, and Video:FrameRate
to Video:KeyframesMaxDist
ratio must be the same for all outputs.
sourcepub fn set_output_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_output_keys(self, input: Option<Vec<String>>) -> Self
For each output in this job that you want to include in a master playlist, the value of the Outputs:Key
object.
-
If your output is not
HLS
or does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefix
andOutputs:Key
:OutputKeyPrefix
Outputs:Key
-
If your output is
HLSv3
and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of.m3u8
, and a series of.ts
files that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key
.m3u8OutputKeyPrefix
Outputs:Key
00000.ts -
If your output is
HLSv4
, has a segment duration set, and is included in anHLSv4
playlist, Elastic Transcoder creates an output playlist file with a file extension of_v4.m3u8
. If the output is video, Elastic Transcoder also creates an output file with an extension of_iframe.m3u8
:OutputKeyPrefix
Outputs:Key
_v4.m3u8OutputKeyPrefix
Outputs:Key
_iframe.m3u8OutputKeyPrefix
Outputs:Key
.ts
Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions.
If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For Smooth
playlists, the Audio:Profile
, Video:Profile
, and Video:FrameRate
to Video:KeyframesMaxDist
ratio must be the same for all outputs.
sourcepub fn hls_content_protection(self, input: HlsContentProtection) -> Self
pub fn hls_content_protection(self, input: HlsContentProtection) -> Self
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn set_hls_content_protection(
self,
input: Option<HlsContentProtection>
) -> Self
pub fn set_hls_content_protection(
self,
input: Option<HlsContentProtection>
) -> Self
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn play_ready_drm(self, input: PlayReadyDrm) -> Self
pub fn play_ready_drm(self, input: PlayReadyDrm) -> Self
The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn set_play_ready_drm(self, input: Option<PlayReadyDrm>) -> Self
pub fn set_play_ready_drm(self, input: Option<PlayReadyDrm>) -> Self
The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn build(self) -> CreateJobPlaylist
pub fn build(self) -> CreateJobPlaylist
Consumes the builder and constructs a CreateJobPlaylist
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more