Class SrtDestination
(experimental) A destination for an SRT output group.
Namespace: Amazon.CDK.AWS.MediaLive.Alpha
Assembly: Amazon.CDK.AWS.MediaLive.Alpha.dll
Syntax (csharp)
public abstract class SrtDestination : DeputyBase
Syntax (vb)
Public MustInherit Class SrtDestination Inherits DeputyBase
Remarks
Use the static factory methods to create.
Stability: Experimental
ExampleMetadata: infused
Examples
EncodeConfiguration video;
EncodeConfiguration audio;
ISecret passphrase;
// SRT caller to a remote listener
OutputGroupConfiguration.Srt(new SrtOutputGroupProps {
Name = "srt_out",
Outputs = new [] { new SrtOutputDefinition {
Encodes = new [] { video, audio },
OutputName = "srt_caller",
Destinations = new [] { SrtDestination.Caller(new SrtCallerDestinationProps {
Address = "203.0.113.20",
Port = 5000,
EncryptionPassphraseSecret = passphrase
}) }
} }
});
// SRT listener — MediaLive waits for the downstream system to connect
OutputGroupConfiguration.Srt(new SrtOutputGroupProps {
Name = "srt_listen",
Outputs = new [] { new SrtOutputDefinition {
Encodes = new [] { video, audio },
OutputName = "srt_listener",
Destinations = new [] { SrtDestination.Listener(new SrtListenerDestinationProps {
ListenerPort = 5000,
EncryptionPassphraseSecret = passphrase
}) }
} }
});
Synopsis
Constructors
| SrtDestination() | (experimental) A destination for an SRT output group. |
Methods
| Caller(ISrtCallerDestinationProps) | (experimental) Create a caller-mode SRT destination. |
| CallerUrl(string, ISrtCallerUrlOptions) | (experimental) Create a caller-mode SRT destination from a full SRT URL. |
| Listener(ISrtListenerDestinationProps) | (experimental) Create a listener-mode SRT destination. |
Constructors
SrtDestination()
(experimental) A destination for an SRT output group.
protected SrtDestination()
Remarks
Stability: Experimental
Methods
Caller(ISrtCallerDestinationProps)
(experimental) Create a caller-mode SRT destination.
public static SrtDestination Caller(ISrtCallerDestinationProps props)
Parameters
Returns
Remarks
MediaLive connects to the remote listener.
Stability: Experimental
CallerUrl(string, ISrtCallerUrlOptions)
(experimental) Create a caller-mode SRT destination from a full SRT URL.
public static SrtDestination CallerUrl(string url, ISrtCallerUrlOptions options)
Parameters
- url string
- options ISrtCallerUrlOptions
Returns
Remarks
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).
Stability: Experimental
Listener(ISrtListenerDestinationProps)
(experimental) Create a listener-mode SRT destination.
public static SrtDestination Listener(ISrtListenerDestinationProps props)
Parameters
Returns
Remarks
MediaLive listens for incoming connections.
Stability: Experimental