rtmp

package
Version: v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const FlvTimestampMax = 0xFFFFFF

Variables

View Source
var CodecTypes = flv.CodecTypes
View Source
var Debug bool

Debug var

Functions

func Handler

func Handler(h *avutil.RegisterHandler)

Handler type

func ParseURL

func ParseURL(uri string) (u *url.URL, err error)

ParseURL type

func SplitPath

func SplitPath(u *url.URL) (app, stream string)

SplitPath type

Types

type Conn

type Conn struct {
	URL             *url.URL
	OnPlayOrPublish func(string, flvio.AMFMap) error
	// contains filtered or unexported fields
}

func Dial

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

Dial type

func DialTimeout

func DialTimeout(uri string, timeout time.Duration) (conn *Conn, err error)

DialTimeout type

func NewConn

func NewConn(netconn net.Conn) *Conn

NewConn type

func (*Conn) Close

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

Close type

func (*Conn) NetConn

func (inth *Conn) NetConn() net.Conn

NetConn type

func (*Conn) Prepare

func (inth *Conn) Prepare() (err error)

func (*Conn) ReadPacket

func (inth *Conn) ReadPacket() (pkt av.Packet, err error)

func (*Conn) RxBytes

func (inth *Conn) RxBytes() uint64

RxBytes type

func (*Conn) Streams

func (inth *Conn) Streams() (streams []av.CodecData, err error)

func (*Conn) TxBytes

func (inth *Conn) TxBytes() uint64

TxBytes type

func (*Conn) WriteHeader

func (inth *Conn) WriteHeader(streams []av.CodecData) (err error)

func (*Conn) WritePacket

func (inth *Conn) WritePacket(pkt av.Packet) (err error)

func (*Conn) WriteTrailer

func (inth *Conn) WriteTrailer() (err error)

type Server

type Server struct {
	Addr          string
	HandlePublish func(*Conn)
	HandlePlay    func(*Conn)
	HandleConn    func(*Conn)
}

func (*Server) ListenAndServe

func (inth *Server) ListenAndServe() (err error)

ListenAndServe type

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL