rtpClient

package
v0.0.0-...-c8b15d8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CtrlEvents = map[int]string{
	rtp.NewStreamData:             "new stream (data)",
	rtp.NewStreamCtrl:             "new stream (ctrl)",
	rtp.MaxNumInStreamReachedData: "max number of streams (data)",
	rtp.MaxNumInStreamReachedCtrl: "max number of streams (ctrl)",
	rtp.WrongStreamStatusData:     "wrong stream status (data)",
	rtp.WrongStreamStatusCtrl:     "wrong stream status (ctrl)",
	rtp.StreamCollisionLoopData:   "stream collision or loop (data)",
	rtp.StreamCollisionLoopCtrl:   "stream collision or loop (ctrl)",

	rtp.RtcpSR:    "sender report",
	rtp.RtcpRR:    "receiver report",
	rtp.RtcpSdes:  "source description",
	rtp.RtcpBye:   "goodbye",
	rtp.RtcpApp:   "application defined",
	rtp.RtcpRtpfb: "generic RTP feedback",
	rtp.RtcpPsfb:  "payload specific",
	rtp.RtcpXr:    "extended report",
}

Functions

func CtrlEventString

func CtrlEventString(event *rtp.CtrlEvent) string

func StartRtspClient

func StartRtspClient(rtspUrl string, port int, logfile string) (*golib.Command, error)

Types

type RtpClient

type RtpClient struct {
	RtpSession *rtp.Session

	ReceiveStats *stats.Stats
	CtrlStats    *stats.Stats
	MissedStats  *stats.Stats
	DataHandler  func(packet *rtp.DataPacket)
	CtrlHandler  func(packet *rtp.CtrlEvent)
	// contains filtered or unexported fields
}

func NewRtpClient

func NewRtpClient(listenIP string, listenPort int) (*RtpClient, error)

func (*RtpClient) Start

func (client *RtpClient) Start(wg *sync.WaitGroup) golib.StopChan

func (*RtpClient) Stop

func (client *RtpClient) Stop()

func (*RtpClient) String

func (client *RtpClient) String() string

Jump to

Keyboard shortcuts

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