httpflv

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNumber byte = iota
	TypeBoolean
	TypeString
	TypeObject
	TypeEcmaArray = 8
	TypeObjectEnd = 9
)

Variables

View Source
var Err = errors.New("amf0 read error")

Functions

func ParseHeader added in v1.0.1

func ParseHeader(self *flvio.Tag, b []byte) (n int, err error)

func ReadTag added in v1.0.1

func ReadTag(r io.Reader, b []byte) (tag flvio.Tag, ts int32, err error)

Types

type AMF0

type AMF0 struct {
	// contains filtered or unexported fields
}

AMF0 spec: http://download.macromedia.com/pub/labs/amf/amf0_spec_121207.pdf

func NewReader

func NewReader(b []byte) *AMF0

func (*AMF0) ReadByte

func (a *AMF0) ReadByte() (byte, error)

func (*AMF0) ReadEcmaArray

func (a *AMF0) ReadEcmaArray() (map[string]any, error)

func (*AMF0) ReadItem

func (a *AMF0) ReadItem() (any, error)

func (*AMF0) ReadMap

func (a *AMF0) ReadMap() (map[any]any, error)

func (*AMF0) ReadMetaData

func (a *AMF0) ReadMetaData() map[string]any

func (*AMF0) ReadNumber

func (a *AMF0) ReadNumber() (float64, error)

func (*AMF0) ReadObject

func (a *AMF0) ReadObject() (map[string]any, error)

func (*AMF0) ReadString

func (a *AMF0) ReadString() (string, error)

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Accept

func Accept(res *http.Response) (*Conn, error)

func Dial

func Dial(uri string) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() (err error)

func (*Conn) ReadPacket

func (c *Conn) ReadPacket() (av.Packet, error)

func (*Conn) Streams

func (c *Conn) Streams() ([]av.CodecData, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL