Class CreateJobPlaylist
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.CreateJobPlaylist
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreateJobPlaylist extends Object implements Serializable, Cloneable
Information about the master playlist.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateJobPlaylist()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateJobPlaylistclone()booleanequals(Object obj)StringgetFormat()The format of the output playlist.HlsContentProtectiongetHlsContentProtection()The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.StringgetName()The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8.List<String>getOutputKeys()For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.PlayReadyDrmgetPlayReadyDrm()The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.inthashCode()voidsetFormat(String format)The format of the output playlist.voidsetHlsContentProtection(HlsContentProtection hlsContentProtection)The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.voidsetName(String name)The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8.voidsetOutputKeys(Collection<String> outputKeys)For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.voidsetPlayReadyDrm(PlayReadyDrm playReadyDrm)The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateJobPlaylistwithFormat(String format)The format of the output playlist.CreateJobPlaylistwithHlsContentProtection(HlsContentProtection hlsContentProtection)The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.CreateJobPlaylistwithName(String name)The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8.CreateJobPlaylistwithOutputKeys(String... outputKeys)For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.CreateJobPlaylistwithOutputKeys(Collection<String> outputKeys)For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.CreateJobPlaylistwithPlayReadyDrm(PlayReadyDrm playReadyDrm)The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
-
-
-
Method Detail
-
setName
public void setName(String name)
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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.- Parameters:
name- 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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.
-
getName
public String getName()
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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.- Returns:
- 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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.
-
withName
public CreateJobPlaylist withName(String name)
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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.- Parameters:
name- 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 allNameobjects. If you create more than one master playlist, the values of allNameobjects must be unique.Note: Elastic Transcoder automatically appends the relevant file extension to the file name (
.m3u8forHLSv3andHLSv4playlists, and.ismand.ismcforSmoothplaylists). If you include a file extension inName, the file name will have two extensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFormat
public void setFormat(String format)
The format of the output playlist. Valid formats include
HLSv3,HLSv4, andSmooth.- Parameters:
format- The format of the output playlist. Valid formats includeHLSv3,HLSv4, andSmooth.
-
getFormat
public String getFormat()
The format of the output playlist. Valid formats include
HLSv3,HLSv4, andSmooth.- Returns:
- The format of the output playlist. Valid formats include
HLSv3,HLSv4, andSmooth.
-
withFormat
public CreateJobPlaylist withFormat(String format)
The format of the output playlist. Valid formats include
HLSv3,HLSv4, andSmooth.- Parameters:
format- The format of the output playlist. Valid formats includeHLSv3,HLSv4, andSmooth.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getOutputKeys
public List<String> getOutputKeys()
For each output in this job that you want to include in a master playlist, the value of the
Outputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.- Returns:
- For each output in this job that you want to include in a master
playlist, the value of the
Outputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs. -
-
-
setOutputKeys
public void setOutputKeys(Collection<String> outputKeys)
For each output in this job that you want to include in a master playlist, the value of the
Outputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.- Parameters:
outputKeys- For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.-
-
-
withOutputKeys
public CreateJobPlaylist withOutputKeys(String... outputKeys)
For each output in this job that you want to include in a master playlist, the value of the
Outputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.NOTE: This method appends the values to the existing list (if any). Use
setOutputKeys(java.util.Collection)orwithOutputKeys(java.util.Collection)if you want to override the existing values.- Parameters:
outputKeys- For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
withOutputKeys
public CreateJobPlaylist withOutputKeys(Collection<String> outputKeys)
For each output in this job that you want to include in a master playlist, the value of the
Outputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.- Parameters:
outputKeys- For each output in this job that you want to include in a master playlist, the value of theOutputs:Keyobject.-
If your output is not
HLSor does not have a segment duration set, the name of the output file is a concatenation ofOutputKeyPrefixandOutputs:Key:OutputKeyPrefix
Outputs:Key -
If your output is
HLSv3and 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.tsfiles that include a five-digit sequential counter beginning with 00000:OutputKeyPrefix
Outputs:Key.m3u8OutputKeyPrefix
Outputs:Key00000.ts -
If your output is
HLSv4, has a segment duration set, and is included in anHLSv4playlist, 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
Smoothplaylists, theAudio:Profile,Video:Profile, andVideo:FrameRatetoVideo:KeyframesMaxDistratio must be the same for all outputs.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setHlsContentProtection
public void setHlsContentProtection(HlsContentProtection hlsContentProtection)
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Parameters:
hlsContentProtection- The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
-
getHlsContentProtection
public HlsContentProtection getHlsContentProtection()
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Returns:
- The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
-
withHlsContentProtection
public CreateJobPlaylist withHlsContentProtection(HlsContentProtection hlsContentProtection)
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Parameters:
hlsContentProtection- The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlayReadyDrm
public void setPlayReadyDrm(PlayReadyDrm playReadyDrm)
The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Parameters:
playReadyDrm- The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
-
getPlayReadyDrm
public PlayReadyDrm getPlayReadyDrm()
The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Returns:
- The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
-
withPlayReadyDrm
public CreateJobPlaylist withPlayReadyDrm(PlayReadyDrm playReadyDrm)
The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
- Parameters:
playReadyDrm- The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateJobPlaylist clone()
-
-