View Source Membrane.RTMP.Sink (Membrane RTMP plugin v0.6.0)
Membrane element being client-side of RTMP streams. To work successfuly it requires to receive both audio and video streams in AAC and H264 format respectively. Currently it supports only:
- RTMP proper - "plain" RTMP protocol
- RTMPS - RTMP over TLS/SSL other RTMP veriants - RTMPT, RTMPE, RTMFP are not supported. Implementation based on FFmpeg.
element-options
Element options
Passed via struct Membrane.RTMP.Sink.t/0
rtmp_url
String.t()
Required
Destination URL of the stream. It needs to start with rtmp:// or rtmps:// depending on the protocol variant.This URL should be provided by your streaming service.
max_attempts
pos_integer()
Default value:
1
Maximum number of connection attempts before failing with an error. The attempts will happen every 500 ms
pads
Pads
video
:video
Availability | :always |
Caps | Membrane.MP4.Payload |
Demand mode | :manual |
Demand unit | :buffers |
Direction | :input |
Mode | :pull |
Name | :video |
audio
:audio
Availability | :always |
Caps | Membrane.AAC |
Demand mode | :manual |
Demand unit | :buffers |
Direction | :input |
Mode | :pull |
Name | :audio |
Link to this section Summary
Types
Struct containing options for Membrane.RTMP.Sink
Functions
Returns pads descriptions for Membrane.RTMP.Sink
Returns description of options available for this module
Link to this section Types
@type t() :: %Membrane.RTMP.Sink{max_attempts: pos_integer(), rtmp_url: String.t()}
Struct containing options for Membrane.RTMP.Sink
Link to this section Functions
@spec membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.RTMP.Sink
@spec options() :: keyword()
Returns description of options available for this module