View Source Membrane.Element.CallbackContext.StreamFormat (Membrane Core v0.11.0)

Structure representing a context that is passed to the element when receiving information about new stream format for given pad.

The old_stream_format field contains stream format previously present on the pad, and is equal to pads[pad].stream_format field.

Link to this section Summary

Link to this section Types

@type t() :: %Membrane.Element.CallbackContext.StreamFormat{
  clock: Membrane.Clock.t() | nil,
  name: Membrane.Element.name_t(),
  old_stream_format: Membrane.StreamFormat.t(),
  pads: %{required(Membrane.Pad.ref_t()) => Membrane.Element.PadData.t()},
  parent_clock: Membrane.Clock.t() | nil,
  playback: Membrane.Playback.t(),
  resource_guard: Membrane.ResourceGuard.t(),
  utility_supervisor: Membrane.UtilitySupervisor.t()
}