Documentation
¶
Index ¶
- type Conn
- func (c *Conn) IsPublishing() bool
- func (c *Conn) NetConn() net.Conn
- func (c *Conn) ReadMetadata() (*gortsplib.Track, *gortsplib.Track, error)
- func (c *Conn) ReadPacket() (av.Packet, error)
- func (c *Conn) ServerHandshake() error
- func (c *Conn) URL() *url.URL
- func (c *Conn) WriteMetadata(videoTrack *gortsplib.Track, audioTrack *gortsplib.Track) error
- func (c *Conn) WritePacket(pkt av.Packet) error
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 NewServerConn ¶
NewServerConn initializes a server-side connection.
func (*Conn) IsPublishing ¶
IsPublishing returns whether the connection is publishing.
func (*Conn) ReadMetadata ¶
ReadMetadata extracts track informations from a connection that is publishing.
func (*Conn) ServerHandshake ¶
ServerHandshake performs the handshake of a server-side connection.
func (*Conn) WriteMetadata ¶
WriteMetadata writes track informations to a connection that is reading.
Click to show internal directories.
Click to hide internal directories.