interface InputSwitchConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.InputSwitchConfiguration |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#InputSwitchConfiguration |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.InputSwitchConfiguration |
Python | aws_cdk.aws_mediapackagev2_alpha.InputSwitchConfiguration |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป InputSwitchConfiguration |
Input Switch Configuration.
Example
declare const stack: Stack;
declare const group: ChannelGroup;
const hlsChannel = new Channel(stack, 'HlsChannel', {
channelGroup: group,
input: InputConfiguration.hls(),
});
const cmafChannel = new Channel(stack, 'CmafChannel', {
channelGroup: group,
input: InputConfiguration.cmaf({
inputSwitchConfiguration: {
mqcsInputSwitching: true,
},
outputHeaders: [HeadersCMSD.MQCS],
}),
});
const simpleCmafChannel = new Channel(stack, 'SimpleCmafChannel', {
channelGroup: group,
input: InputConfiguration.cmaf({
outputHeaders: [HeadersCMSD.MQCS],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| mqcs | boolean | When true, AWS Elemental MediaPackage performs input switching based on the MQCS. |
| preferred | Ingest | For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. |
mqcsInputSwitching?
Type:
boolean
(optional, default: false)
When true, AWS Elemental MediaPackage performs input switching based on the MQCS.
This setting is valid only when InputType is CMAF.
preferredInput?
Type:
Ingest
(optional, default: MediaPackage uses its default switching behavior)
For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores.
Select 1 to prefer the first ingest endpoint, or 2 to prefer the second ingest endpoint. If you don't specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.

.NET
Go
Java
Python
TypeScript (