interface MediaStreamAudio
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.MediaStreamAudio |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#MediaStreamAudio |
Java | software.amazon.awscdk.services.mediaconnect.alpha.MediaStreamAudio |
Python | aws_cdk.aws_mediaconnect_alpha.MediaStreamAudio |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป MediaStreamAudio |
Implements
Media
A media stream represents one component of your content, such as video, audio, or ancillary data.
After you add a media stream to your flow, you can associate it with sources and outputs that use the ST 2110 JPEG XS or CDI protocol.
Example
declare const stack: Stack;
// Create media streams
const videoStream = MediaStream.video({
mediaStreamId: 1,
mediaStreamName: 'video-stream',
videoFormat: MediaVideoFormat.HD_1080P,
fmtp: {
colorimetry: Colorimetry.BT709,
exactFramerate: Framerate.FPS_29_97,
par: PixelAspectRatio.SQUARE,
videoRange: VideoRange.NARROW,
scanMode: ScanMode.PROGRESSIVE,
tcs: Tcs.SDR,
},
});
const audioStream = MediaStream.audio({
mediaStreamId: 2,
mediaStreamName: 'audio-stream',
channelOrder: AudioStreamOrderOptions.STANDARD_STEREO,
});
// Add to flow
const flow = new Flow(stack, 'MyFlow', {
source: SourceConfiguration.router(),
mediaStreams: [videoStream, audioStream], // Declare at flow level
});
Properties
| Name | Type | Description |
|---|---|---|
| media | number | A unique identifier for the media stream. |
| media | string | A name that helps you distinguish one media stream from another. |
| channel | Audio | The format of the audio channel. |
| clock | number | The sample rate for the stream. |
| description? | string | A description that can help you quickly identify what your media stream is used for. |
| fmt? | number | The format type number (sometimes referred to as RTP payload type) of the media stream. |
| lang? | string | The audio language, in a format that is recognized by the receiver. |
mediaStreamId
Type:
number
A unique identifier for the media stream.
mediaStreamName
Type:
string
A name that helps you distinguish one media stream from another.
channelOrder?
Type:
Audio
(optional, default: the MediaConnect service default)
The format of the audio channel.
clockRate?
Type:
number
(optional, default: default clock rate for the media stream type)
The sample rate for the stream.
This value is measured in Hz.
description?
Type:
string
(optional, default: no description)
A description that can help you quickly identify what your media stream is used for.
fmt?
Type:
number
(optional, default: assigned by MediaConnect)
The format type number (sometimes referred to as RTP payload type) of the media stream.
MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
lang?
Type:
string
(optional, default: no language specified)
The audio language, in a format that is recognized by the receiver.

.NET
Go
Java
Python
TypeScript (