httpflv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 12 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

This section is empty.

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]interface{}, error)

func (*AMF0) ReadItem

func (a *AMF0) ReadItem() (interface{}, error)

func (*AMF0) ReadMap

func (a *AMF0) ReadMap() (map[interface{}]interface{}, error)

func (*AMF0) ReadMetaData

func (a *AMF0) ReadMetaData() map[string]interface{}

func (*AMF0) ReadNumber

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

func (*AMF0) ReadObject

func (a *AMF0) ReadObject() (map[string]interface{}, 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