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

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

Element options

Passed via struct Membrane.Element.File.Source.t/0

  • location

    Required

    Path to the file

  • chunk_size

    Default value: 2048

    Size of chunks being read

Pads

:output

Availability:always
Bin?false
Caps:any
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.File.Source

Functions

Returns pads descriptions 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{
  chunk_size: pos_integer(),
  location: String.t()
}

Struct containing options for Membrane.Element.File.Source

Link to this section Functions

Returns pads descriptions for Membrane.Element.File.Source

Returns description of options available for this module

Link to this function

supply_demand(size, redemand, state)

View Source