View Source Membrane.Testing.Endpoint (Membrane Core v1.1.2)

Link to this section Summary

Types

t()

Struct containing options for Membrane.Testing.Endpoint

Functions

Returns description of options available for this module

Creates output with generator function from list of buffers.

Link to this section Types

@type generator() :: (state :: any(), buffers_cnt :: pos_integer() ->
                  {[Membrane.Element.Action.t()], state :: any()})
@type t() :: %Membrane.Testing.Endpoint{
  autodemand: boolean(),
  output: {initial_state :: any(), generator()} | Enum.t(),
  stream_format: struct()
}

Struct containing options for Membrane.Testing.Endpoint

Link to this section Functions

Link to this function

default_buf_gen(generator_state, size)

View Source
@spec default_buf_gen(integer(), integer()) ::
  {[Membrane.Element.Action.t()], integer()}
@spec options() :: keyword()

Returns description of options available for this module

Link to this function

output_from_buffers(data)

View Source
@spec output_from_buffers([Membrane.Buffer.t()]) ::
  {[Membrane.Buffer.t()], generator()}

Creates output with generator function from list of buffers.