Membrane.File.Source (Membrane File plugin v0.7.0) 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.File.Source.t/0

  • location

    String.t()

    Required
    Path to the file

  • chunk_size

    pos_integer

    Default value: 2048
    Size of chunks being read

Pads

:output

Availability:always
Caps:any
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

Struct containing options for Membrane.File.Source

Functions

Returns pads descriptions for Membrane.File.Source

Returns description of options available for this module

Link to this section Types

Specs

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

Struct containing options for Membrane.File.Source

Link to this section Functions

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.File.Source

Specs

options() :: keyword()

Returns description of options available for this module

Link to this function

supply_demand(size, redemand, state)

View Source