Membrane.Buffer (Membrane Core v0.8.0) View Source
Structure representing a single chunk of data that flows between elements.
For now, it is just a wrapper around bitstring with optionally some metadata attached to it, but in future releases we plan to support different payload types.
Link to this section Summary
Functions
Returns Membrane.Buffer.t() :dts if available or :pts if :dts is not set.
If none of them is set nil is returned.
Link to this section Types
Specs
metadata_t() :: map()
Specs
t() :: %Membrane.Buffer{
dts: Membrane.Time.t() | nil,
metadata: metadata_t(),
payload: Membrane.Payload.t(),
pts: Membrane.Time.t() | nil
}
Link to this section Functions
Specs
get_dts_or_pts(t()) :: Membrane.Time.t() | nil
Returns Membrane.Buffer.t() :dts if available or :pts if :dts is not set.
If none of them is set nil is returned.