rtcpsender

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 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 deprecated

type RTCPSender rtcpsender.RTCPSender

RTCPSender is a utility to generate RTCP sender reports.

Deprecated: will be removed in the next version.

func New

func New(
	clockRate int,
	period time.Duration,
	timeNow func() time.Time,
	writePacketRTCP func(rtcp.Packet),
) *RTCPSender

New allocates a RTCPSender.

func (*RTCPSender) Close

func (rs *RTCPSender) Close()

Close closes the RTCPSender.

func (*RTCPSender) LastPacketData

func (rs *RTCPSender) LastPacketData() (uint16, uint32, time.Time, bool)

LastPacketData returns metadata of the last RTP packet.

func (*RTCPSender) ProcessPacket

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

ProcessPacket extracts data from RTP packets.

func (*RTCPSender) SenderSSRC

func (rs *RTCPSender) 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