Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
RtmpOutputGroupProps Struct
Properties for an RTMP output group.
Example
ts
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;
medialive.OutputGroupConfiguration.rtmp({
name: 'social',
outputs: [{
encodes: [video, audio],
outputName: 'live',
destinations: [
medialive.RtmpDestination.url('rtmp://rtmp.example.com/live', 'your-stream-key'),
],
}],
});
python
# video: medialive.EncodeConfiguration
# audio: medialive.EncodeConfiguration
medialive.OutputGroupConfiguration.rtmp(
name="social",
outputs=[medialive.RtmpOutputDefinition(
encodes=[video, audio],
output_name="live",
destinations=[
medialive.RtmpDestination.url("rtmp://rtmp.example.com/live", "your-stream-key")
]
)]
)
java
EncodeConfiguration video;
EncodeConfiguration audio;
OutputGroupConfiguration.rtmp(RtmpOutputGroupProps.builder()
.name("social")
.outputs(List.of(RtmpOutputDefinition.builder()
.encodes(List.of(video, audio))
.outputName("live")
.destinations(List.of(RtmpDestination.url("rtmp://rtmp.example.com/live", "your-stream-key")))
.build()))
.build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
EncodeConfiguration video;
EncodeConfiguration audio;
OutputGroupConfiguration.Rtmp(new RtmpOutputGroupProps {
Name = "social",
Outputs = new [] { new RtmpOutputDefinition {
Encodes = new [] { video, audio },
OutputName = "live",
Destinations = new [] { RtmpDestination.Url("rtmp://rtmp.example.com/live", "your-stream-key") }
} }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
var video EncodeConfiguration
var audio EncodeConfiguration
medialive.OutputGroupConfiguration_Rtmp(&RtmpOutputGroupProps{
Name: jsii.String("social"),
Outputs: []RtmpOutputDefinition{
&RtmpOutputDefinition{
Encodes: []EncodeConfiguration{
video,
audio,
},
OutputName: jsii.String("live"),
Destinations: []RtmpDestination{
medialive.RtmpDestination_Url(jsii.String("rtmp://rtmp.example.com/live"), jsii.String("your-stream-key")),
},
},
},
})
Properties
adMarkersoptionalRtmpAdMarkers[]ad_markersoptionaltyping.List[RtmpAdMarkers]adMarkersoptionalList<RtmpAdMarkers>AdMarkersoptionalRtmpAdMarkers[]AdMarkersoptional*[]RtmpAdMarkers#Choose the ad marker type for this output group.
Default: no ad markers
authenticationSchemeoptionalRtmpAuthenticationSchemeauthentication_schemeoptionalRtmpAuthenticationSchemeauthenticationSchemeoptionalRtmpAuthenticationSchemeAuthenticationSchemeoptionalRtmpAuthenticationSchemeAuthenticationSchemeoptionalRtmpAuthenticationScheme= RtmpAuthenticationScheme.COMMON#The authentication scheme for the RTMP connection.
cacheFullBehavioroptionalRtmpCacheFullBehaviorcache_full_behavioroptionalRtmpCacheFullBehaviorcacheFullBehavioroptionalRtmpCacheFullBehaviorCacheFullBehavioroptionalRtmpCacheFullBehaviorCacheFullBehavioroptionalRtmpCacheFullBehavior#Controls behavior when the content cache fills up.
Default: service default
cacheLengthoptionalDurationcache_lengthoptionalDurationcacheLengthoptionalDurationCacheLengthoptionalDurationCacheLengthoptionalDuration#The cache length, in seconds, that is used to calculate buffer size.
Default: service default
captionDataoptionalRtmpCaptionDatacaption_dataoptionalRtmpCaptionDatacaptionDataoptionalRtmpCaptionDataCaptionDataoptionalRtmpCaptionDataCaptionDataoptionalRtmpCaptionData#Controls the types of data that pass to onCaptionInfo outputs.
Default: service default
includeFillerNalUnitsoptionalRtmpIncludeFillerNalUnitsinclude_filler_nal_unitsoptionalRtmpIncludeFillerNalUnitsincludeFillerNalUnitsoptionalRtmpIncludeFillerNalUnitsIncludeFillerNalUnitsoptionalRtmpIncludeFillerNalUnitsIncludeFillerNalUnitsoptionalRtmpIncludeFillerNalUnits#Controls whether filler NAL units are included in the output.
Default: service default
inputLossActionoptionalRtmpInputLossActioninput_loss_actionoptionalRtmpInputLossActioninputLossActionoptionalRtmpInputLossActionInputLossActionoptionalRtmpInputLossActionInputLossActionoptionalRtmpInputLossAction#Controls the behavior of this RTMP group if the input becomes unavailable.
Default: service default
The name of this output group.
outputsRtmpOutputDefinition[]outputstyping.List[RtmpOutputDefinition]outputsList<RtmpOutputDefinition>OutputsRtmpOutputDefinition[]Outputs*[]RtmpOutputDefinitionrequired#The outputs for this RTMP output group.
Each output includes its own RTMP destination.