rtmp

package
v0.23.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package rtmp provides RTMP connectivity.

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 NewConn

func NewConn(rw io.ReadWriter) *Conn

NewConn initializes a connection.

func (*Conn) BytesReceived

func (c *Conn) BytesReceived() uint64

BytesReceived returns the number of bytes received.

func (*Conn) BytesSent

func (c *Conn) BytesSent() uint64

BytesSent returns the number of bytes sent.

func (*Conn) InitializeClient

func (c *Conn) InitializeClient(u *url.URL, isPublishing bool) error

InitializeClient performs the initialization of a client-side connection.

func (*Conn) InitializeServer

func (c *Conn) InitializeServer() (*url.URL, bool, error)

InitializeServer performs the initialization of a server-side connection.

func (*Conn) ReadMessage

func (c *Conn) ReadMessage() (message.Message, error)

ReadMessage reads a message.

func (*Conn) ReadTracks

func (c *Conn) ReadTracks() (formats.Format, formats.Format, error)

ReadTracks reads track informations. It returns the video track and the audio track.

func (*Conn) WriteMessage

func (c *Conn) WriteMessage(msg message.Message) error

WriteMessage writes a message.

func (*Conn) WriteTracks

func (c *Conn) WriteTracks(videoTrack formats.Format, audioTrack formats.Format) error

WriteTracks writes track informations.

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.

Jump to

Keyboard shortcuts

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