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

A destination for an SRT 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#L239)

## Example

```ts
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;
declare const passphrase: secretsmanager.ISecret;

// SRT caller to a remote listener
medialive.OutputGroupConfiguration.srt({
  name: 'srt_out',
  outputs: [{
    encodes: [video, audio],
    outputName: 'srt_caller',
    destinations: [medialive.SrtDestination.caller({
      address: '203.0.113.20',
      port: 5000,
      encryptionPassphraseSecret: passphrase,
    })],
  }],
});

// SRT listener — MediaLive waits for the downstream system to connect
medialive.OutputGroupConfiguration.srt({
  name: 'srt_listen',
  outputs: [{
    encodes: [video, audio],
    outputName: 'srt_listener',
    destinations: [medialive.SrtDestination.listener({
      listenerPort: 5000,
      encryptionPassphraseSecret: passphrase,
    })],
  }],
});
```

## Initializer

```ts
new SrtDestination()
```

## Methods

- `caller(props: SrtCallerDestinationProps): SrtDestination // chainable` (static) — Create a caller-mode SRT destination.

  MediaLive connects to the remote listener.

- `callerUrl(url: string, options: SrtCallerUrlOptions): SrtDestination // chainable` (static) — Create a caller-mode SRT destination from a full SRT URL.

  Use this when you already have a URL rather than a separate host and port — for example a
  MediaConnect Router Input's ingest endpoint (`routerInput.endpoints[0].url`).

- `listener(props: SrtListenerDestinationProps): SrtDestination // chainable` (static) — Create a listener-mode SRT destination.

  MediaLive listens for incoming connections.
