Interface MediaStreamAudio
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MediaStreamBase
- All Known Implementing Classes:
MediaStreamAudio.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.185Z")
@Stability(Experimental)
public interface MediaStreamAudio
extends software.amazon.jsii.JsiiSerializable, MediaStreamBase
(experimental) 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:
Stack stack;
// Create media streams
MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
.mediaStreamId(1)
.mediaStreamName("video-stream")
.videoFormat(MediaVideoFormat.HD_1080P)
.fmtp(FmtpVideo.builder()
.colorimetry(Colorimetry.BT709)
.exactFramerate(Framerate.FPS_29_97)
.par(PixelAspectRatio.SQUARE)
.videoRange(VideoRange.NARROW)
.scanMode(ScanMode.PROGRESSIVE)
.tcs(Tcs.SDR)
.build())
.build());
MediaStream audioStream = MediaStream.audio(MediaStreamAudio.builder()
.mediaStreamId(2)
.mediaStreamName("audio-stream")
.channelOrder(AudioStreamOrderOptions.STANDARD_STEREO)
.build());
// Add to flow
Flow flow = Flow.Builder.create(stack, "MyFlow")
.source(SourceConfiguration.router())
.mediaStreams(List.of(videoStream, audioStream))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMediaStreamAudiostatic final classAn implementation forMediaStreamAudio -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaStreamAudio.Builderbuilder()default AudioStreamOrderOptions(experimental) The format of the audio channel.default Number(experimental) The sample rate for the stream.default NumbergetFmt()(experimental) The format type number (sometimes referred to as RTP payload type) of the media stream.default StringgetLang()(experimental) The audio language, in a format that is recognized by the receiver.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.mediaconnect.alpha.MediaStreamBase
getDescription, getMediaStreamId, getMediaStreamName
-
Method Details
-
getChannelOrder
(experimental) The format of the audio channel.Default: - the MediaConnect service default
-
getClockRate
(experimental) The sample rate for the stream.This value is measured in Hz.
Default: - default clock rate for the media stream type
-
getFmt
(experimental) 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.
Default: - assigned by MediaConnect
-
getLang
(experimental) The audio language, in a format that is recognized by the receiver.Default: - no language specified
-
builder
- Returns:
- a
MediaStreamAudio.BuilderofMediaStreamAudio
-