Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
AudioLanguageSelectionPolicy Class
Policy for how MediaLive identifies the audio stream when selecting by language, on a transport-stream PMT update.
Example
ts
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
new medialive.Channel(stack, 'Channel', {
inputs: [{
input,
audioSelectors: [
medialive.AudioSelector.byLanguage('eng', 'eng', medialive.AudioLanguageSelectionPolicy.STRICT),
],
captionSelectors: [
medialive.CaptionSelector.embedded('embedded'),
],
videoSelector: {
colorSpace: medialive.VideoColorSpace.HDR10,
colorSpaceUsage: medialive.VideoColorSpaceUsage.FORCE,
selectBy: medialive.VideoSelection.byProgramId(1),
},
}],
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [{ encodes: [video], outputName: 'hls_out' }],
}),
],
});
Properties
LOOSEAudioLanguageSelectionPolicylooseAudioLanguageSelectionPolicyLOOSEAudioLanguageSelectionPolicyLOOSEAudioLanguageSelectionPolicyLOOSEAudioLanguageSelectionPolicystatic#On a PMT update, fall back to another audio stream of the same type in the program if a stream with the same language can't be found.
STRICTAudioLanguageSelectionPolicystrictAudioLanguageSelectionPolicySTRICTAudioLanguageSelectionPolicySTRICTAudioLanguageSelectionPolicySTRICTAudioLanguageSelectionPolicystatic#Strictly identify audio by its language descriptor.
If the matching language is no longer present after a PMT update, mute is encoded until the language returns.
The underlying string value passed to CloudFormation.
Methods
of(value: string): AudioLanguageSelectionPolicy // chainable@staticmethod def of(value: str) -> AudioLanguageSelectionPolicypublic static AudioLanguageSelectionPolicy of(String value)public static AudioLanguageSelectionPolicy Of(string value)func Of(Value *string) AudioLanguageSelectionPolicystatic#A value not yet modelled by AWS CDK.