class AudioLanguageSelectionPolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.AudioLanguageSelectionPolicy |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#AudioLanguageSelectionPolicy |
Java | software.amazon.awscdk.services.medialive.alpha.AudioLanguageSelectionPolicy |
Python | aws_cdk.aws_medialive_alpha.AudioLanguageSelectionPolicy |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป AudioLanguageSelectionPolicy |
Policy for how MediaLive identifies the audio stream when selecting by language, on a transport-stream PMT update.
Example
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
| Name | Type | Description |
|---|---|---|
| value | string | The underlying string value passed to CloudFormation. |
| static LOOSE | Audio | 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. |
| static STRICT | Audio | Strictly identify audio by its language descriptor. |
value
Type:
string
The underlying string value passed to CloudFormation.
static LOOSE
Type:
Audio
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.
static STRICT
Type:
Audio
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.
Methods
| Name | Description |
|---|---|
| static of(value) | A value not yet modelled by AWS CDK. |
static of(value)
public static of(value: string): AudioLanguageSelectionPolicy
Parameters
- value
string
Returns
A value not yet modelled by AWS CDK.

.NET
Go
Java
Python
TypeScript (