rtmp

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

Conn is a RTMP connection.

func Dial

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

Dial connects to a server in reading mode.

func NewServerConn

func NewServerConn(nconn net.Conn) *Conn

NewServerConn initializes a server-side connection.

func (*Conn) IsPublishing

func (c *Conn) IsPublishing() bool

IsPublishing returns whether the connection is publishing.

func (*Conn) NetConn

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

NetConn returns the underlying net.Conn.

func (*Conn) ReadMetadata

func (c *Conn) ReadMetadata() (*gortsplib.Track, *gortsplib.Track, error)

ReadMetadata extracts track informations from a connection that is publishing.

func (*Conn) ReadPacket

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

ReadPacket reads a packet.

func (*Conn) ServerHandshake

func (c *Conn) ServerHandshake() error

ServerHandshake performs the handshake of a server-side connection.

func (*Conn) URL

func (c *Conn) URL() *url.URL

URL returns the URL requested by the connection.

func (*Conn) WriteMetadata

func (c *Conn) WriteMetadata(videoTrack *gortsplib.Track, audioTrack *gortsplib.Track) error

WriteMetadata writes track informations to a connection that is reading.

func (*Conn) WritePacket

func (c *Conn) WritePacket(pkt av.Packet) error

WritePacket writes a packet.

Jump to

Keyboard shortcuts

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