Membrane Element: File v0.2.2 Membrane.Element.File.Source View Source

Element that reads chunks of data from given file and sends them as buffers through the output pad.

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.File.Source

Functions

Returns pads specification for Membrane.Element.File.Source

Returns description of options available for this module

Link to this section Types

Link to this type

t() View Source
t() :: %Membrane.Element.File.Source{
  location: String.t(),
  chunk_size: pos_integer()
}

Struct containing options for Membrane.Element.File.Source

  • chunk_size - Size of chunks being read

    Defaults to 2048

  • location - Path to the file

Link to this section Functions

Returns pads specification for Membrane.Element.File.Source

They are the following:

  • Pad :output

    • availability: :always
    • caps: :any
    • direction: :output
    • mode: :pull

Returns description of options available for this module

Link to this function

supply_demand(size, redemand, state) View Source