Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/rtpfb/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type packetLog interface {
// Option can be used to set initial options on CCFB interceptors.
type Option func(*Interceptor) error

// WithLoggerFactory sets the logger factory used by the interceptor.
func WithLoggerFactory(lf logging.LoggerFactory) Option {
return func(i *Interceptor) error {
i.logFactory = lf
Expand Down
18 changes: 12 additions & 6 deletions pkg/rtpfb/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"github.com/pion/rtcp"
)

// PacketReport contains the acknowledgement state of a single outgoing RTP
// packet.
type PacketReport struct {
// SSRC of the stream the packet was sent on.
SSRC uint32
Expand Down Expand Up @@ -51,12 +53,16 @@ type PacketReport struct {
ECN rtcp.ECN
}

// A Report contains the Arrival time of a CCFB or TWCC packet, the estimated
// RTT based on the feedback packet and a list of PacketReport for all
// acknowledged packets that were still in the history and not yet included in
// an earlier Report.
// A Report contains the results of processing an incoming CCFB or TWCC packet.
type Report struct {
Arrival time.Time
RTT time.Duration
// Arrival is the time at which the feedback packet arrived at the sender.
Arrival time.Time

// RTT is the round trip time estimated from the feedback packet. It is
// zero if no RTT could be measured.
RTT time.Duration

// PacketReports contains a PacketReport for all acknowledged packets that
// were still in the history and not yet included in an earlier Report.
PacketReports []PacketReport
}
Loading