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 {
// contains filtered or unexported fields
}
RTCPSender is a utility to generate RTCP sender reports.
func New ¶
func New( clockRate int, writePacketRTCP func(rtcp.Packet), ) *RTCPSender
New allocates a RTCPSender.
func (*RTCPSender) LastPacketData ¶
LastPacketData returns metadata of the last RTP packet.
func (*RTCPSender) LastSSRC ¶
func (rs *RTCPSender) LastSSRC() (uint32, bool)
LastSSRC returns the SSRC of the last RTP packet.
func (*RTCPSender) ProcessPacket ¶
ProcessPacket extracts the needed data from RTP packets.
func (*RTCPSender) Start ¶
func (rs *RTCPSender) Start(period time.Duration)
Start starts the periodic generation of RTCP sender reports.
Click to show internal directories.
Click to hide internal directories.