Documentation ¶
Overview ¶
Package rtcpreceiver contains a utility to generate RTCP receiver reports.
Index ¶
- type RTCPReceiver
- func (rr *RTCPReceiver) Close()
- func (rr *RTCPReceiver) PacketNTP(ts uint32) (time.Time, bool)
- func (rr *RTCPReceiver) ProcessPacket(pkt *rtp.Packet, system time.Time, ptsEqualsDTS bool) error
- func (rr *RTCPReceiver) ProcessSenderReport(sr *rtcp.SenderReport, system time.Time)
- func (rr *RTCPReceiver) SenderSSRC() (uint32, bool)
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( clockRate int, receiverSSRC *uint32, period time.Duration, timeNow func() time.Time, writePacketRTCP func(rtcp.Packet), ) (*RTCPReceiver, error)
New allocates a RTCPReceiver.
func (*RTCPReceiver) PacketNTP ¶
func (rr *RTCPReceiver) PacketNTP(ts uint32) (time.Time, bool)
PacketNTP returns the NTP timestamp of the packet.
func (*RTCPReceiver) ProcessPacket ¶
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.
Click to show internal directories.
Click to hide internal directories.