ExFLV.Tag (FLV muxer and demuxer v0.4.0)

View Source

Module describing an FLV tag.

Summary

Functions

Parses the binary into an flv tag.

Same as parse/1 but raises on error or insufficient data.

Serializes the flv tag.

Types

t()

@type t() :: %ExFLV.Tag{
  data:
    iodata()
    | ExFLV.Tag.AudioData.t()
    | ExFLV.Tag.VideoData.t()
    | ExFLV.Tag.ExVideoData.t()
    | nil,
  timestamp: non_neg_integer(),
  type: :audio | :video | :script
}

Functions

parse(arg1)

@spec parse(binary()) :: {:ok, t()} | {:error, any()} | :more

Parses the binary into an flv tag.

parse!(data)

@spec parse!(binary()) :: t()

Same as parse/1 but raises on error or insufficient data.

serialize(tag)

@spec serialize(t()) :: iodata()

Serializes the flv tag.