View Source Membrane.RTMP.SourceBin (Membrane RTMP plugin v0.4.1)
Bin responsible for spawning new RTMP server.
It will receive RTMP stream from the client, parse it and demux it, outputting single audio and video which are ready for further processing with Membrane Elements. At this moment only AAC and H264 codecs are support
bin-options
Bin options
Passed via struct Membrane.RTMP.SourceBin.t/0
port
1..65535
Required
Port on which the server will listenlocal_ip
binary()
Default value:
"127.0.0.1"
IP address on which the server will listen. This is useful if you have more than one network interfacetimeout
Time.t() | :infinity
Default value:
:infinity
Time during which the connection with the client must be established before handle_prepared_to_playing fails.Duration given must be a multiply of one second or atom
:infinity
.
pads
Pads
audio
:audio
Availability | :always |
Caps | Membrane.AAC |
Demand unit | :buffers |
Direction | :output |
Mode | :pull |
Name | :audio |
video
:video
Availability | :always |
Caps | Membrane.H264 |
Demand unit | :buffers |
Direction | :output |
Mode | :pull |
Name | :video |
Link to this section Summary
Types
Struct containing options for Membrane.RTMP.SourceBin
Functions
Returns pads descriptions for Membrane.RTMP.SourceBin
Returns description of options available for this module
Link to this section Types
@type t() :: %Membrane.RTMP.SourceBin{ local_ip: binary(), port: 1..65535, timeout: Time.t() | :infinity }
Struct containing options for Membrane.RTMP.SourceBin
Link to this section Functions
@spec membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.RTMP.SourceBin
@spec options() :: keyword()
Returns description of options available for this module