HlsPackageProperty Struct
Parameters for Apple HLS packaging.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackage as mediapackage } from 'aws-cdk-lib';
const hlsPackageProperty: mediapackage.CfnOriginEndpoint.HlsPackageProperty = {
adMarkers: 'adMarkers',
adsOnDeliveryRestrictions: 'adsOnDeliveryRestrictions',
adTriggers: ['adTriggers'],
encryption: {
spekeKeyProvider: {
resourceId: 'resourceId',
roleArn: 'roleArn',
systemIds: ['systemIds'],
url: 'url',
// the properties below are optional
certificateArn: 'certificateArn',
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
},
// the properties below are optional
constantInitializationVector: 'constantInitializationVector',
encryptionMethod: 'encryptionMethod',
keyRotationIntervalSeconds: 123,
repeatExtXKey: false,
},
includeDvbSubtitles: false,
includeIframeOnlyStream: false,
playlistType: 'playlistType',
playlistWindowSeconds: 123,
programDateTimeIntervalSeconds: 123,
segmentDurationSeconds: 123,
streamSelection: {
maxVideoBitsPerSecond: 123,
minVideoBitsPerSecond: 123,
streamOrder: 'streamOrder',
},
useAudioRenditionGroup: false,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediapackage as mediapackage
hls_package_property = mediapackage.CfnOriginEndpoint.HlsPackageProperty(
ad_markers="adMarkers",
ads_on_delivery_restrictions="adsOnDeliveryRestrictions",
ad_triggers=["adTriggers"],
encryption=mediapackage.CfnOriginEndpoint.HlsEncryptionProperty(
speke_key_provider=mediapackage.CfnOriginEndpoint.SpekeKeyProviderProperty(
resource_id="resourceId",
role_arn="roleArn",
system_ids=["systemIds"],
url="url",
# the properties below are optional
certificate_arn="certificateArn",
encryption_contract_configuration=mediapackage.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
preset_speke20_audio="presetSpeke20Audio",
preset_speke20_video="presetSpeke20Video"
)
),
# the properties below are optional
constant_initialization_vector="constantInitializationVector",
encryption_method="encryptionMethod",
key_rotation_interval_seconds=123,
repeat_ext_x_key=False
),
include_dvb_subtitles=False,
include_iframe_only_stream=False,
playlist_type="playlistType",
playlist_window_seconds=123,
program_date_time_interval_seconds=123,
segment_duration_seconds=123,
stream_selection=mediapackage.CfnOriginEndpoint.StreamSelectionProperty(
max_video_bits_per_second=123,
min_video_bits_per_second=123,
stream_order="streamOrder"
),
use_audio_rendition_group=False
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackage.*;
HlsPackageProperty hlsPackageProperty = HlsPackageProperty.builder()
.adMarkers("adMarkers")
.adsOnDeliveryRestrictions("adsOnDeliveryRestrictions")
.adTriggers(List.of("adTriggers"))
.encryption(HlsEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.resourceId("resourceId")
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.constantInitializationVector("constantInitializationVector")
.encryptionMethod("encryptionMethod")
.keyRotationIntervalSeconds(123)
.repeatExtXKey(false)
.build())
.includeDvbSubtitles(false)
.includeIframeOnlyStream(false)
.playlistType("playlistType")
.playlistWindowSeconds(123)
.programDateTimeIntervalSeconds(123)
.segmentDurationSeconds(123)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.useAudioRenditionGroup(false)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;
var hlsPackageProperty = new HlsPackageProperty {
AdMarkers = "adMarkers",
AdsOnDeliveryRestrictions = "adsOnDeliveryRestrictions",
AdTriggers = new [] { "adTriggers" },
Encryption = new HlsEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
ResourceId = "resourceId",
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
CertificateArn = "certificateArn",
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
},
// the properties below are optional
ConstantInitializationVector = "constantInitializationVector",
EncryptionMethod = "encryptionMethod",
KeyRotationIntervalSeconds = 123,
RepeatExtXKey = false
},
IncludeDvbSubtitles = false,
IncludeIframeOnlyStream = false,
PlaylistType = "playlistType",
PlaylistWindowSeconds = 123,
ProgramDateTimeIntervalSeconds = 123,
SegmentDurationSeconds = 123,
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
},
UseAudioRenditionGroup = false
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
hlsPackageProperty := &HlsPackageProperty{
AdMarkers: jsii.String("adMarkers"),
AdsOnDeliveryRestrictions: jsii.String("adsOnDeliveryRestrictions"),
AdTriggers: []*string{
jsii.String("adTriggers"),
},
Encryption: &HlsEncryptionProperty{
SpekeKeyProvider: &SpekeKeyProviderProperty{
ResourceId: jsii.String("resourceId"),
RoleArn: jsii.String("roleArn"),
SystemIds: []*string{
jsii.String("systemIds"),
},
Url: jsii.String("url"),
// the properties below are optional
CertificateArn: jsii.String("certificateArn"),
EncryptionContractConfiguration: &EncryptionContractConfigurationProperty{
PresetSpeke20Audio: jsii.String("presetSpeke20Audio"),
PresetSpeke20Video: jsii.String("presetSpeke20Video"),
},
},
// the properties below are optional
ConstantInitializationVector: jsii.String("constantInitializationVector"),
EncryptionMethod: jsii.String("encryptionMethod"),
KeyRotationIntervalSeconds: jsii.Number(123),
RepeatExtXKey: jsii.Boolean(false),
},
IncludeDvbSubtitles: jsii.Boolean(false),
IncludeIframeOnlyStream: jsii.Boolean(false),
PlaylistType: jsii.String("playlistType"),
PlaylistWindowSeconds: jsii.Number(123),
ProgramDateTimeIntervalSeconds: jsii.Number(123),
SegmentDurationSeconds: jsii.Number(123),
StreamSelection: &StreamSelectionProperty{
MaxVideoBitsPerSecond: jsii.Number(123),
MinVideoBitsPerSecond: jsii.Number(123),
StreamOrder: jsii.String("streamOrder"),
},
UseAudioRenditionGroup: jsii.Boolean(false),
}
Properties
adMarkersoptionalstringad_markersoptionalstradMarkersoptionalStringAdMarkersoptionalstringAdMarkersoptional*string #notes
Valid values:
NONE- Omits all SCTE-35 ad markers from the output.PASSTHROUGH- Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest.SCTE35_ENHANCED- Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.
adsOnDeliveryRestrictionsoptionalstringads_on_delivery_restrictionsoptionalstradsOnDeliveryRestrictionsoptionalStringAdsOnDeliveryRestrictionsoptionalstringAdsOnDeliveryRestrictionsoptional*string #For information about SCTE-35 in AWS Elemental MediaPackage , see SCTE-35 Message Options in AWS Elemental MediaPackage .
adTriggersoptionalstring[]ad_triggersoptionaltyping.List[str]adTriggersoptionalList<String>AdTriggersoptionalstring[]AdTriggersoptional*[]*string #notes
Valid values:
BREAKDISTRIBUTOR_ADVERTISEMENTDISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITYDISTRIBUTOR_PLACEMENT_OPPORTUNITYPROVIDER_ADVERTISEMENTPROVIDER_OVERLAY_PLACEMENT_OPPORTUNITYPROVIDER_PLACEMENT_OPPORTUNITYSPLICE_INSERT
encryptionoptionalIResolvable | CfnOriginEndpoint.encryptionoptionaltyping.Union[IResolvable, HlsEncryptionProperty]encryptionoptionalIResolvableEncryptionoptionalIResolvableEncryptionoptionalinterface{} #includeDvbSubtitlesoptionalboolean | IResolvableinclude_dvb_subtitlesoptionaltyping.Union[bool, IResolvable]includeDvbSubtitlesoptionalBooleanIncludeDvbSubtitlesoptionalboolIncludeDvbSubtitlesoptionalinterface{} #includeIframeOnlyStreamoptionalboolean | IResolvableinclude_iframe_only_streamoptionaltyping.Union[bool, IResolvable]includeIframeOnlyStreamoptionalBooleanIncludeIframeOnlyStreamoptionalboolIncludeIframeOnlyStreamoptionalinterface{} #When true, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included.
playlistTypeoptionalstringplaylist_typeoptionalstrplaylistTypeoptionalStringPlaylistTypeoptionalstringPlaylistTypeoptional*string #Indicates if the playlist is live-to-VOD content.
playlistWindowSecondsoptionalnumberplaylist_window_secondsoptionalint | floatplaylistWindowSecondsoptionalNumberPlaylistWindowSecondsoptionaldoublePlaylistWindowSecondsoptional*float64 #programDateTimeIntervalSecondsoptionalnumberprogram_date_time_interval_secondsoptionalint | floatprogramDateTimeIntervalSecondsoptionalNumberProgramDateTimeIntervalSecondsoptionaldoubleProgramDateTimeIntervalSecondsoptional*float64 #Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.
Omit this attribute or enter 0 to indicate that the EXT-X-PROGRAM-DATE-TIME tags are not included in the manifest.
segmentDurationSecondsoptionalnumbersegment_duration_secondsoptionalint | floatsegmentDurationSecondsoptionalNumberSegmentDurationSecondsoptionaldoubleSegmentDurationSecondsoptional*float64 #Actual fragments are rounded to the nearest multiple of the source fragment duration.
streamSelectionoptionalIResolvable | CfnOriginEndpoint.stream_selectionoptionaltyping.Union[IResolvable, StreamSelectionProperty]streamSelectionoptionalIResolvableStreamSelectionoptionalIResolvableStreamSelectionoptionalinterface{} #useAudioRenditionGroupoptionalboolean | IResolvableuse_audio_rendition_groupoptionaltyping.Union[bool, IResolvable]useAudioRenditionGroupoptionalBooleanUseAudioRenditionGroupoptionalboolUseAudioRenditionGroupoptionalinterface{} #All other tracks in the stream can be used with any audio rendition from the group.