View Source Membrane.Element.CallbackContext (Membrane Core v0.12.7)

Describes context passed to the Membrane Element callbacks.

Link to this section Summary

Types

t()

Type describing context passed to the Membrane Element callbacks.

Link to this section Types

@type t() :: %{
  :pads => %{required(Membrane.Pad.ref()) => Membrane.Element.PadData.t()},
  :clock => Membrane.Clock.t() | nil,
  :parent_clock => Membrane.Clock.t() | nil,
  :name => Membrane.Element.name(),
  :playback => Membrane.Playback.t(),
  :resource_guard => Membrane.ResourceGuard.t(),
  :utility_supervisor => Membrane.UtilitySupervisor.t(),
  optional(:incoming_demand) => non_neg_integer(),
  optional(:options) => map(),
  optional(:old_stream_format) => Membrane.StreamFormat.t()
}

Type describing context passed to the Membrane Element callbacks.

Field :incoming_demand is present only in Membrane.Element.WithOutputPads.handle_demand/5.

Field :options is present only in Membrane.Element.Base.handle_pad_added/3 and Membrane.Element.Base.handle_pad_removed/3.

Field :old_stream_format is present only in Membrane.Element.WithInputPads.handle_stream_format/4.