HLX.Sample (HLS Reader and Writer v0.6.0)

View Source

Module describing a media sample.

Summary

Functions

Creates a new sample.

Types

t()

@type t() :: %HLX.Sample{
  dts: non_neg_integer(),
  duration: non_neg_integer(),
  payload: iodata(),
  pts: non_neg_integer(),
  sync?: boolean(),
  timestamp: DateTime.t() | nil,
  track_id: non_neg_integer()
}

Functions

new(payload, opts \\ [])

@spec new(
  iodata(),
  keyword()
) :: t()

Creates a new sample.