SrtDestination
- class aws_cdk.aws_medialive_alpha.SrtDestination
Bases:
object(experimental) A destination for an SRT output group.
Use the static factory methods to create.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# video: medialive.EncodeConfiguration # audio: medialive.EncodeConfiguration # passphrase: secretsmanager.ISecret # SRT caller to a remote listener medialive.OutputGroupConfiguration.srt( name="srt_out", outputs=[medialive.SrtOutputDefinition( encodes=[video, audio], output_name="srt_caller", destinations=[medialive.SrtDestination.caller( address="203.0.113.20", port=5000, encryption_passphrase_secret=passphrase )] )] ) # SRT listener — MediaLive waits for the downstream system to connect medialive.OutputGroupConfiguration.srt( name="srt_listen", outputs=[medialive.SrtOutputDefinition( encodes=[video, audio], output_name="srt_listener", destinations=[medialive.SrtDestination.listener( listener_port=5000, encryption_passphrase_secret=passphrase )] )] )
- Stability:
experimental
Static Methods
- classmethod caller(*, address, encryption_passphrase_secret, port, stream_id=None)
(experimental) Create a caller-mode SRT destination.
MediaLive connects to the remote listener.
- Parameters:
address (
str) – (experimental) The address (IP or host) of the SRT listener to connect to.encryption_passphrase_secret (
ISecret) – (experimental) The Secrets Manager secret containing the encryption passphrase. [disable-awslint:prefer-ref-interface]port (
Union[int,float]) – (experimental) The port of the SRT listener to connect to.stream_id (
Optional[str]) – (experimental) The stream ID for the SRT connection. Default: - no stream ID
- Stability:
experimental
- Return type:
- classmethod caller_url(url, *, encryption_passphrase_secret, stream_id=None)
(experimental) 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).- Parameters:
url (
str)encryption_passphrase_secret (
ISecret) – (experimental) The Secrets Manager secret containing the encryption passphrase. [disable-awslint:prefer-ref-interface]stream_id (
Optional[str]) – (experimental) The stream ID for the SRT connection. Default: - no stream ID
- Stability:
experimental
- Return type:
- classmethod listener(*, encryption_passphrase_secret, listener_port, stream_id=None)
(experimental) Create a listener-mode SRT destination.
MediaLive listens for incoming connections.
- Parameters:
encryption_passphrase_secret (
ISecret) – (experimental) The Secrets Manager secret containing the encryption passphrase. [disable-awslint:prefer-ref-interface]listener_port (
Union[int,float]) – (experimental) The port that MediaLive will listen on. AWS reserves the range 5000–5200 for SRT listener output.stream_id (
Optional[str]) – (experimental) The stream ID for the SRT connection. Default: - no stream ID
- Stability:
experimental
- Return type: