class RtmpDestination
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.RtmpDestination |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#RtmpDestination |
Java | software.amazon.awscdk.services.medialive.alpha.RtmpDestination |
Python | aws_cdk.aws_medialive_alpha.RtmpDestination |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป RtmpDestination |
A destination for an RTMP output group.
Use the static factory methods to create.
Example
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'),
],
}],
});
Initializer
new RtmpDestination()
Methods
| Name | Description |
|---|---|
| static url(url, streamName, options?) | Create an RTMP destination. |
static url(url, streamName, options?)
public static url(url: string, streamName: string, options?: OutputDestinationOptions): RtmpDestination
Parameters
- url
stringโ The RTMP endpoint URL (e.g. rtmp://host/appname). - streamName
stringโ The stream name (stream key). - options
Outputโ Optional credentials.Destination Options
Returns
Create an RTMP destination.

.NET
Go
Java
Python
TypeScript (