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

View Source

Module for reading FLV files.

Summary

Functions

Closes the FLV file.

Creates a new reader.

Same as new/1, but raises in case of failure.

Reads the next tag from the FLV file.

Same as next_tag/1, but raises in case of failure.

Types

t()

@type t() :: %ExFLV.Reader{
  audio?: boolean(),
  file: File.io_device(),
  video?: boolean()
}

Functions

close(map)

@spec close(t()) :: :ok | {:error, any()}

Closes the FLV file.

new(path)

@spec new(Path.t()) :: {:ok, t()} | {:error, any()}

Creates a new reader.

new!(path)

@spec new!(Path.t()) :: t()

Same as new/1, but raises in case of failure.

next_tag(map)

@spec next_tag(t()) :: {:ok, ExFLV.Tag.t()} | {:error, any()} | :eof

Reads the next tag from the FLV file.

next_tag!(reader)

@spec next_tag!(t()) :: ExFLV.Tag.t() | :eof

Same as next_tag/1, but raises in case of failure.