rtcpsender

package
v4.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rtcpsender contains a utility to generate RTCP sender reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTCPSender

type RTCPSender struct {
	ClockRate       int
	Period          time.Duration
	TimeNow         func() time.Time
	WritePacketRTCP func(rtcp.Packet)
	// contains filtered or unexported fields
}

RTCPSender is a utility to generate RTCP sender reports.

func (*RTCPSender) Close

func (rs *RTCPSender) Close()

Close closes the RTCPSender.

func (*RTCPSender) Initialize

func (rs *RTCPSender) Initialize()

Initialize initializes a RTCPSender.

func (*RTCPSender) ProcessPacketRTP

func (rs *RTCPSender) ProcessPacketRTP(pkt *rtp.Packet, ntp time.Time, ptsEqualsDTS bool)

ProcessPacketRTP extracts data from RTP packets.

func (*RTCPSender) Stats

func (rs *RTCPSender) Stats() *Stats

Stats returns statistics.

type Stats

type Stats struct {
	LocalSSRC          uint32
	LastSequenceNumber uint16
	LastRTP            uint32
	LastNTP            time.Time
}

Stats are statistics.

Jump to

Keyboard shortcuts

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