Class CfnChannel.AudioOnlyHlsSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.AudioOnlyHlsSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.AudioOnlyHlsSettingsProperty>
- Enclosing interface:
CfnChannel.AudioOnlyHlsSettingsProperty
@Stability(Stable)
public static final class CfnChannel.AudioOnlyHlsSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.AudioOnlyHlsSettingsProperty>
A builder for
CfnChannel.AudioOnlyHlsSettingsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioGroupId
(String audioGroupId) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioGroupId()
audioOnlyImage
(IResolvable audioOnlyImage) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioOnlyImage()
audioOnlyImage
(CfnChannel.InputLocationProperty audioOnlyImage) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioOnlyImage()
audioTrackType
(String audioTrackType) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioTrackType()
build()
Builds the configured instance.segmentType
(String segmentType) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getSegmentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
audioGroupId
@Stability(Stable) public CfnChannel.AudioOnlyHlsSettingsProperty.Builder audioGroupId(String audioGroupId) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioGroupId()
- Parameters:
audioGroupId
- Specifies the group that the audio rendition belongs to.- Returns:
this
-
audioOnlyImage
@Stability(Stable) public CfnChannel.AudioOnlyHlsSettingsProperty.Builder audioOnlyImage(IResolvable audioOnlyImage) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioOnlyImage()
- Parameters:
audioOnlyImage
- Used with an audio-only stream. It must be a .jpg or .png file. If given, this image is used as the cover art for the audio-only output. Ideally, it should be formatted for an iPhone screen for two reasons. The iPhone does not resize the image; instead, it crops a centered image on the top/bottom and left/right. Additionally, this image file gets saved bit-for-bit into every 10-second segment file, so it increases bandwidth by {image file size} * {segment count} * {user count.}.- Returns:
this
-
audioOnlyImage
@Stability(Stable) public CfnChannel.AudioOnlyHlsSettingsProperty.Builder audioOnlyImage(CfnChannel.InputLocationProperty audioOnlyImage) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioOnlyImage()
- Parameters:
audioOnlyImage
- Used with an audio-only stream. It must be a .jpg or .png file. If given, this image is used as the cover art for the audio-only output. Ideally, it should be formatted for an iPhone screen for two reasons. The iPhone does not resize the image; instead, it crops a centered image on the top/bottom and left/right. Additionally, this image file gets saved bit-for-bit into every 10-second segment file, so it increases bandwidth by {image file size} * {segment count} * {user count.}.- Returns:
this
-
audioTrackType
@Stability(Stable) public CfnChannel.AudioOnlyHlsSettingsProperty.Builder audioTrackType(String audioTrackType) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getAudioTrackType()
- Parameters:
audioTrackType
- Four types of audio-only tracks are supported: Audio-Only Variant Stream The client can play back this audio-only stream instead of video in low-bandwidth scenarios. Represented as an EXT-X-STREAM-INF in the HLS manifest. Alternate Audio, Auto Select, Default Alternate rendition that the client should try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=YES, AUTOSELECT=YES Alternate Audio, Auto Select, Not Default Alternate rendition that the client might try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES Alternate Audio, not Auto Select Alternate rendition that the client will not try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=NO.- Returns:
this
-
segmentType
@Stability(Stable) public CfnChannel.AudioOnlyHlsSettingsProperty.Builder segmentType(String segmentType) Sets the value ofCfnChannel.AudioOnlyHlsSettingsProperty.getSegmentType()
- Parameters:
segmentType
- Specifies the segment type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.AudioOnlyHlsSettingsProperty>
- Returns:
- a new instance of
CfnChannel.AudioOnlyHlsSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-