rtcpreceiver

package
v4.0.0-...-0ef4ac4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package rtcpreceiver contains a utility to generate RTCP receiver reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTCPReceiver

type RTCPReceiver struct {
	// contains filtered or unexported fields
}

RTCPReceiver is a utility to generate RTCP receiver reports.

func New

func New(
	clockRate int,
	receiverSSRC *uint32,
	period time.Duration,
	timeNow func() time.Time,
	writePacketRTCP func(rtcp.Packet),
) (*RTCPReceiver, error)

New allocates a RTCPReceiver.

func (*RTCPReceiver) Close

func (rr *RTCPReceiver) Close()

Close closes the RTCPReceiver.

func (*RTCPReceiver) PacketNTP

func (rr *RTCPReceiver) PacketNTP(ts uint32) (time.Time, bool)

PacketNTP returns the NTP timestamp of the packet.

func (*RTCPReceiver) ProcessPacket

func (rr *RTCPReceiver) ProcessPacket(pkt *rtp.Packet, system time.Time, ptsEqualsDTS bool) error

ProcessPacket extracts the needed data from RTP packets.

func (*RTCPReceiver) ProcessSenderReport

func (rr *RTCPReceiver) ProcessSenderReport(sr *rtcp.SenderReport, system time.Time)

ProcessSenderReport extracts the needed data from RTCP sender reports.

func (*RTCPReceiver) SenderSSRC

func (rr *RTCPReceiver) SenderSSRC() (uint32, bool)

SenderSSRC returns the SSRC of outgoing RTP packets.

Jump to

Keyboard shortcuts

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