rtcpreceiver

package
v0.0.0-...-92eb262 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 5 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(
	period time.Duration,
	receiverSSRC *uint32,
	clockRate int,
	writePacketRTCP func(rtcp.Packet),
) *RTCPReceiver

New allocates a RTCPReceiver.

func (*RTCPReceiver) Close

func (rr *RTCPReceiver) Close()

Close closes the RTCPReceiver.

func (*RTCPReceiver) LastSSRC

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

LastSSRC returns the SSRC of the last RTP packet.

func (*RTCPReceiver) ProcessPacket

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

ProcessPacket extracts the needed data from RTP packets.

func (*RTCPReceiver) ProcessSenderReport

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

ProcessSenderReport extracts the needed data from RTCP sender reports.

Jump to

Keyboard shortcuts

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