rtcpreceiver

package
v4.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 4 Imported by: 2

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 deprecated

type RTCPReceiver rtcpreceiver.RTCPReceiver

RTCPReceiver is a utility to generate RTCP receiver reports.

Deprecated: will be removed in the next version.

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