MediaStreamProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const mediaStreamProperty: mediaconnect.CfnFlow.MediaStreamProperty = {
mediaStreamId: 123,
mediaStreamName: 'mediaStreamName',
mediaStreamType: 'mediaStreamType',
// the properties below are optional
attributes: {
fmtp: {
channelOrder: 'channelOrder',
colorimetry: 'colorimetry',
exactFramerate: 'exactFramerate',
par: 'par',
range: 'range',
scanMode: 'scanMode',
tcs: 'tcs',
},
lang: 'lang',
},
clockRate: 123,
description: 'description',
fmt: 123,
tags: [{
key: 'key',
value: 'value',
}],
videoFormat: 'videoFormat',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect
media_stream_property = mediaconnect.CfnFlow.MediaStreamProperty(
media_stream_id=123,
media_stream_name="mediaStreamName",
media_stream_type="mediaStreamType",
# the properties below are optional
attributes=mediaconnect.CfnFlow.MediaStreamAttributesProperty(
fmtp=mediaconnect.CfnFlow.FmtpProperty(
channel_order="channelOrder",
colorimetry="colorimetry",
exact_framerate="exactFramerate",
par="par",
range="range",
scan_mode="scanMode",
tcs="tcs"
),
lang="lang"
),
clock_rate=123,
description="description",
fmt=123,
tags=[CfnTag(
key="key",
value="value"
)],
video_format="videoFormat"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.*;
MediaStreamProperty mediaStreamProperty = MediaStreamProperty.builder()
.mediaStreamId(123)
.mediaStreamName("mediaStreamName")
.mediaStreamType("mediaStreamType")
// the properties below are optional
.attributes(MediaStreamAttributesProperty.builder()
.fmtp(FmtpProperty.builder()
.channelOrder("channelOrder")
.colorimetry("colorimetry")
.exactFramerate("exactFramerate")
.par("par")
.range("range")
.scanMode("scanMode")
.tcs("tcs")
.build())
.lang("lang")
.build())
.clockRate(123)
.description("description")
.fmt(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.videoFormat("videoFormat")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;
var mediaStreamProperty = new MediaStreamProperty {
MediaStreamId = 123,
MediaStreamName = "mediaStreamName",
MediaStreamType = "mediaStreamType",
// the properties below are optional
Attributes = new MediaStreamAttributesProperty {
Fmtp = new FmtpProperty {
ChannelOrder = "channelOrder",
Colorimetry = "colorimetry",
ExactFramerate = "exactFramerate",
Par = "par",
Range = "range",
ScanMode = "scanMode",
Tcs = "tcs"
},
Lang = "lang"
},
ClockRate = 123,
Description = "description",
Fmt = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VideoFormat = "videoFormat"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
mediaStreamProperty := &MediaStreamProperty{
MediaStreamId: jsii.Number(123),
MediaStreamName: jsii.String("mediaStreamName"),
MediaStreamType: jsii.String("mediaStreamType"),
// the properties below are optional
Attributes: &MediaStreamAttributesProperty{
Fmtp: &FmtpProperty{
ChannelOrder: jsii.String("channelOrder"),
Colorimetry: jsii.String("colorimetry"),
ExactFramerate: jsii.String("exactFramerate"),
Par: jsii.String("par"),
Range: jsii.String("range"),
ScanMode: jsii.String("scanMode"),
Tcs: jsii.String("tcs"),
},
Lang: jsii.String("lang"),
},
ClockRate: jsii.Number(123),
Description: jsii.String("description"),
Fmt: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VideoFormat: jsii.String("videoFormat"),
}
Properties
attributesoptionalIResolvable | CfnFlow.attributesoptionaltyping.Union[IResolvable, MediaStreamAttributesProperty]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{} #Attributes that are related to the media stream.
clockRateoptionalnumberclock_rateoptionalint | floatclockRateoptionalNumberClockRateoptionaldoubleClockRateoptional*float64 #The sample rate for the stream.
This value is measured in Hz.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description that can help you quickly identify what your media stream is used for.
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.
mediaStreamIdnumbermedia_stream_idint | floatmediaStreamIdNumberMediaStreamIddoubleMediaStreamId*float64 required #A unique identifier for the media stream.
mediaStreamNamestringmedia_stream_namestrmediaStreamNameStringMediaStreamNamestringMediaStreamName*string required #A name that helps you distinguish one media stream from another.
mediaStreamTypestringmedia_stream_typestrmediaStreamTypeStringMediaStreamTypestringMediaStreamType*string required #The type of media stream.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Key-value pairs that can be used to tag this media stream.
videoFormatoptionalstringvideo_formatoptionalstrvideoFormatoptionalStringVideoFormatoptionalstringVideoFormatoptional*string #The resolution of the video.