Skip to content
v2.273.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SrtDestination Class ​

A destination for an SRT output group.

Use the static factory methods to create.

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()
python
SrtDestination()
java
new SrtDestination()
csharp
new SrtDestination()
go
NewSrtDestination()

Methods ​

caller(props: SrtCallerDestinationProps): SrtDestination // chainable@staticmethod def caller(props: SrtCallerDestinationProps) -> SrtDestinationpublic static SrtDestination caller(SrtCallerDestinationProps props)public static SrtDestination Caller(SrtCallerDestinationProps props)func Caller(Props SrtCallerDestinationProps) SrtDestinationstatic#
Create a caller-mode SRT destination.

MediaLive connects to the remote listener.

callerUrl(url: string, options: SrtCallerUrlOptions): SrtDestination // chainable@staticmethod def caller_url(url: str, options: SrtCallerUrlOptions) -> SrtDestinationpublic static SrtDestination callerUrl(String url, SrtCallerUrlOptions options)public static SrtDestination CallerUrl(string url, SrtCallerUrlOptions options)func CallerUrl(Url *string, Options SrtCallerUrlOptions) SrtDestinationstatic#
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@staticmethod def listener(props: SrtListenerDestinationProps) -> SrtDestinationpublic static SrtDestination listener(SrtListenerDestinationProps props)public static SrtDestination Listener(SrtListenerDestinationProps props)func Listener(Props SrtListenerDestinationProps) SrtDestinationstatic#
Create a listener-mode SRT destination.

MediaLive listens for incoming connections.