tfrc

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tfrc

type Tfrc struct {
	// contains filtered or unexported fields
}

func New

func New(init, min, max int) *Tfrc

func (*Tfrc) ComputeTFRCBitrate

func (t *Tfrc) ComputeTFRCBitrate() int

ComputeTFRCBitrate computes the TFRC bitrate based on RFC 5348 and RFC 8083

func (*Tfrc) GetLastFraction

func (t *Tfrc) GetLastFraction() float64

GetLastFraction Return the last recorded fraction lost

func (*Tfrc) GetRttSample

func (t *Tfrc) GetRttSample() float64

GetRttSample returns the last RTT sample

func (*Tfrc) GetSmoothedRTT

func (t *Tfrc) GetSmoothedRTT() float64

GetSmoothedRTT returns the current smoothed RTT

func (*Tfrc) PreProcessRTCP

func (t *Tfrc) PreProcessRTCP(now time.Time, lsr, delay uint32, fractionLost uint8)

PreProcessRTCP processes RTCP packets before computing bitrate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL