ExMP4.Sample (MP4 Reader and Writer v0.11.0)

View Source

A struct describing an MP4 sample (a video frame, an audio sample, ...etc)

Summary

Functions

Create a new sample

Types

id()

@type id() :: non_neg_integer()

t()

@type t() :: %ExMP4.Sample{
  dts: non_neg_integer(),
  duration: integer(),
  payload: binary() | nil,
  pts: non_neg_integer(),
  sync?: boolean(),
  track_id: ExMP4.Track.id()
}

Functions

new(opts)

@spec new(Keyword.t()) :: t()

Create a new sample