> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# RtmpDestination

A destination for an RTMP output group.

Use the static factory methods to create.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/destinations.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/destinations.ts#L137)

## 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'),
    ],
  }],
});
```

## Initializer

```ts
new RtmpDestination()
```

## Methods

- `url(url: string, streamName: string, options?: OutputDestinationOptions): RtmpDestination // chainable` (static) — Create an RTMP destination.

  **Parameters**

  - `url` — The RTMP endpoint URL (e.g. rtmp://host/appname).
  - `streamName` — The stream name (stream key).
  - `options` — Optional credentials.
