Documentation ¶
Overview ¶
Package rtmp provides RTMP connectivity.
Index ¶
- type Conn
- func (c *Conn) BytesReceived() uint64
- func (c *Conn) BytesSent() uint64
- func (c *Conn) InitializeClient(u *url.URL, isPublishing bool) error
- func (c *Conn) InitializeServer() (*url.URL, bool, error)
- func (c *Conn) ReadMessage() (message.Message, error)
- func (c *Conn) ReadTracks() (formats.Format, formats.Format, error)
- func (c *Conn) WriteMessage(msg message.Message) error
- func (c *Conn) WriteTracks(videoTrack formats.Format, audioTrack formats.Format) 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 (*Conn) BytesReceived ¶
BytesReceived returns the number of bytes received.
func (*Conn) InitializeClient ¶
InitializeClient performs the initialization of a client-side connection.
func (*Conn) InitializeServer ¶
InitializeServer performs the initialization of a server-side connection.
func (*Conn) ReadMessage ¶
ReadMessage reads a message.
func (*Conn) ReadTracks ¶
ReadTracks reads track informations. It returns the video track and the audio track.
func (*Conn) WriteMessage ¶
WriteMessage writes a message.
Directories ¶
Path | Synopsis |
---|---|
Package bytecounter contains a reader/writer that allows to count bytes.
|
Package bytecounter contains a reader/writer that allows to count bytes. |
Package chunk implements RTMP chunks.
|
Package chunk implements RTMP chunks. |
Package h264conf contains a H264 configuration parser.
|
Package h264conf contains a H264 configuration parser. |
Package handshake contains the RTMP handshake mechanism.
|
Package handshake contains the RTMP handshake mechanism. |
Package message contains a RTMP message reader/writer.
|
Package message contains a RTMP message reader/writer. |
Package rawmessage contains a RTMP raw message reader/writer.
|
Package rawmessage contains a RTMP raw message reader/writer. |
Package tracks contains functions to read and write track metadata.
|
Package tracks contains functions to read and write track metadata. |
Click to show internal directories.
Click to hide internal directories.