RtmpDestination

class aws_cdk.aws_medialive_alpha.RtmpDestination

Bases: object

(experimental) A destination for an RTMP output group.

Use the static factory methods to create.

Stability:

experimental

ExampleMetadata:

infused

Example:

# video: medialive.EncodeConfiguration
# audio: medialive.EncodeConfiguration


medialive.OutputGroupConfiguration.rtmp(
    name="social",
    outputs=[medialive.RtmpOutputDefinition(
        encodes=[video, audio],
        output_name="live",
        destinations=[
            medialive.RtmpDestination.url("rtmp://rtmp.example.com/live", "your-stream-key")
        ]
    )]
)
Stability:

experimental

Static Methods

classmethod url(url, stream_name, *, password=None, username=None)

(experimental) Create an RTMP destination.

Parameters:
  • url (str) – The RTMP endpoint URL (e.g. rtmp://host/appname).

  • stream_name (str) – The stream name (stream key).

  • password (Optional[IStringParameter]) – (experimental) An SSM String Parameter holding the password for accessing the downstream system. MediaLive reads it from Parameter Store at channel runtime, so the channel role is granted read access. Default: - no credentials

  • username (Optional[str]) – (experimental) The username for accessing the downstream system. Default: - no credentials

Stability:

experimental

Return type:

RtmpDestination