HlsPackageProperty Struct
Parameters for a packaging configuration that uses HTTP Live Streaming (HLS) packaging.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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.CfnPackagingConfiguration.HlsPackageProperty = {
hlsManifests: [{
adMarkers: 'adMarkers',
includeIframeOnlyStream: false,
manifestName: 'manifestName',
programDateTimeIntervalSeconds: 123,
repeatExtXKey: false,
streamSelection: {
maxVideoBitsPerSecond: 123,
minVideoBitsPerSecond: 123,
streamOrder: 'streamOrder',
},
}],
// the properties below are optional
encryption: {
spekeKeyProvider: {
roleArn: 'roleArn',
systemIds: ['systemIds'],
url: 'url',
// the properties below are optional
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
},
// the properties below are optional
constantInitializationVector: 'constantInitializationVector',
encryptionMethod: 'encryptionMethod',
},
includeDvbSubtitles: false,
segmentDurationSeconds: 123,
useAudioRenditionGroup: false,
};
python
# 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.CfnPackagingConfiguration.HlsPackageProperty(
hls_manifests=[mediapackage.CfnPackagingConfiguration.HlsManifestProperty(
ad_markers="adMarkers",
include_iframe_only_stream=False,
manifest_name="manifestName",
program_date_time_interval_seconds=123,
repeat_ext_x_key=False,
stream_selection=mediapackage.CfnPackagingConfiguration.StreamSelectionProperty(
max_video_bits_per_second=123,
min_video_bits_per_second=123,
stream_order="streamOrder"
)
)],
# the properties below are optional
encryption=mediapackage.CfnPackagingConfiguration.HlsEncryptionProperty(
speke_key_provider=mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty(
role_arn="roleArn",
system_ids=["systemIds"],
url="url",
# the properties below are optional
encryption_contract_configuration=mediapackage.CfnPackagingConfiguration.EncryptionContractConfigurationProperty(
preset_speke20_audio="presetSpeke20Audio",
preset_speke20_video="presetSpeke20Video"
)
),
# the properties below are optional
constant_initialization_vector="constantInitializationVector",
encryption_method="encryptionMethod"
),
include_dvb_subtitles=False,
segment_duration_seconds=123,
use_audio_rendition_group=False
)
java
// 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()
.hlsManifests(List.of(HlsManifestProperty.builder()
.adMarkers("adMarkers")
.includeIframeOnlyStream(false)
.manifestName("manifestName")
.programDateTimeIntervalSeconds(123)
.repeatExtXKey(false)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build()))
// the properties below are optional
.encryption(HlsEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.constantInitializationVector("constantInitializationVector")
.encryptionMethod("encryptionMethod")
.build())
.includeDvbSubtitles(false)
.segmentDurationSeconds(123)
.useAudioRenditionGroup(false)
.build();
csharp
// 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 {
HlsManifests = new [] { new HlsManifestProperty {
AdMarkers = "adMarkers",
IncludeIframeOnlyStream = false,
ManifestName = "manifestName",
ProgramDateTimeIntervalSeconds = 123,
RepeatExtXKey = false,
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
}
} },
// the properties below are optional
Encryption = new HlsEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
},
// the properties below are optional
ConstantInitializationVector = "constantInitializationVector",
EncryptionMethod = "encryptionMethod"
},
IncludeDvbSubtitles = false,
SegmentDurationSeconds = 123,
UseAudioRenditionGroup = false
};
go
// 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{
HlsManifests: []interface{}{
&HlsManifestProperty{
AdMarkers: jsii.String("adMarkers"),
IncludeIframeOnlyStream: jsii.Boolean(false),
ManifestName: jsii.String("manifestName"),
ProgramDateTimeIntervalSeconds: jsii.Number(123),
RepeatExtXKey: jsii.Boolean(false),
StreamSelection: &StreamSelectionProperty{
MaxVideoBitsPerSecond: jsii.Number(123),
MinVideoBitsPerSecond: jsii.Number(123),
StreamOrder: jsii.String("streamOrder"),
},
},
},
// the properties below are optional
Encryption: &HlsEncryptionProperty{
SpekeKeyProvider: &SpekeKeyProviderProperty{
RoleArn: jsii.String("roleArn"),
SystemIds: []*string{
jsii.String("systemIds"),
},
Url: jsii.String("url"),
// the properties below are optional
EncryptionContractConfiguration: &EncryptionContractConfigurationProperty{
PresetSpeke20Audio: jsii.String("presetSpeke20Audio"),
PresetSpeke20Video: jsii.String("presetSpeke20Video"),
},
},
// the properties below are optional
ConstantInitializationVector: jsii.String("constantInitializationVector"),
EncryptionMethod: jsii.String("encryptionMethod"),
},
IncludeDvbSubtitles: jsii.Boolean(false),
SegmentDurationSeconds: jsii.Number(123),
UseAudioRenditionGroup: jsii.Boolean(false),
}
Properties
encryptionoptionalIResolvable | CfnPackagingConfiguration.encryptionoptionaltyping.Union[IResolvable, HlsEncryptionProperty]encryptionoptionalIResolvableEncryptionoptionalIResolvableEncryptionoptionalinterface{} #Parameters for encrypting content.
hlsManifestsIResolvable | IResolvable | CfnPackagingConfiguration.hls_manifeststyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HlsManifestProperty]]]hlsManifestsIResolvableHlsManifestsIResolvableHlsManifestsinterface{} required #A list of HLS manifest configurations that are available from this endpoint.
includeDvbSubtitlesoptionalboolean | IResolvableinclude_dvb_subtitlesoptionaltyping.Union[bool, IResolvable]includeDvbSubtitlesoptionalBooleanIncludeDvbSubtitlesoptionalboolIncludeDvbSubtitlesoptionalinterface{} #When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.
segmentDurationSecondsoptionalnumbersegment_duration_secondsoptionalint | floatsegmentDurationSecondsoptionalNumberSegmentDurationSecondsoptionaldoubleSegmentDurationSecondsoptional*float64 #Duration (in seconds) of each fragment.
Actual fragments are rounded to the nearest multiple of the source fragment duration.
useAudioRenditionGroupoptionalboolean | IResolvableuse_audio_rendition_groupoptionaltyping.Union[bool, IResolvable]useAudioRenditionGroupoptionalBooleanUseAudioRenditionGroupoptionalboolUseAudioRenditionGroupoptionalinterface{} #When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group.
All other tracks in the stream can be used with any audio rendition from the group.