View Source Membrane.MP4.Container.Header (Membrane MP4 plugin v0.22.3)

A structure describing the header of the box.

The content_size field is equal to the box size minus the size of the header (8 bytes).

Link to this section Summary

Functions

Parses the header of a box.

Link to this section Types

@type t() :: %Membrane.MP4.Container.Header{
  content_size: non_neg_integer(),
  name: atom()
}

Link to this section Functions

@spec parse(binary()) :: {:ok, t(), leftover :: binary()} | {:error, :not_enough_data}

Parses the header of a box.

Returns the t/0 and the leftover data.