Documentation
¶
Overview ¶
Package rtpsender contains a utility to send RTP packets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
ClockRate int
Period time.Duration
TimeNow func() time.Time
WritePacketRTCP func(rtcp.Packet)
// contains filtered or unexported fields
}
Sender is a utility to send RTP packets. It is in charge of: - counting sent packets - generating RTCP sender reports. - parsing incoming RTCP receiver reports.
func (*Sender) ProcessPacket ¶
ProcessPacket extracts data from RTP packets.
func (*Sender) ProcessReceptionReport ¶ added in v5.5.0
func (rs *Sender) ProcessReceptionReport(report *rtcp.ReceptionReport)
ProcessReceptionReport extracts data from RTCP receiver reports.
type Stats ¶
type Stats struct {
// outbound RTP packets.
Sent uint64
// last sequence number of outbound RTP packets.
LastSequenceNumber uint16
// last RTP time of outbound RTP packets.
LastRTP uint32
// last NTP time of outbound RTP packets.
LastNTP time.Time
// outbound RTP packets reported as lost by the remote receiver.
ReportedLost uint64
// Deprecated: use Sent.
TotalSent uint64
}
Stats are statistics.
Click to show internal directories.
Click to hide internal directories.