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) LastSSRC ¶
func (rr *RTCPReceiver) LastSSRC() (uint32, bool)
LastSSRC returns the SSRC of the last RTP packet.
func (*RTCPReceiver) ProcessPacket ¶
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.
Click to show internal directories.
Click to hide internal directories.