connectionquality

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AudioConnectionScore added in v0.15.3

func AudioConnectionScore(pctLoss float64, jitter uint32) float64

func Score2Rating

func Score2Rating(score float64) livekit.ConnectionQuality

func VideoConnectionScore added in v0.15.3

func VideoConnectionScore(pctLoss float64, reducedQuality bool) float64

Types

type ConnectionStats

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

func NewConnectionStats

func NewConnectionStats(params ConnectionStatsParams) *ConnectionStats

func (*ConnectionStats) Close added in v0.15.3

func (cs *ConnectionStats) Close()

func (*ConnectionStats) GetScore added in v0.15.3

func (cs *ConnectionStats) GetScore() float64

func (*ConnectionStats) OnStatsUpdate added in v0.15.3

func (cs *ConnectionStats) OnStatsUpdate(fn func(cs *ConnectionStats, stat *livekit.AnalyticsStat))

func (*ConnectionStats) RTCPFeedback added in v0.15.3

func (cs *ConnectionStats) RTCPFeedback(packets []rtcp.Packet, expectedSSRC uint32)

func (*ConnectionStats) Start added in v0.15.3

func (cs *ConnectionStats) Start()

type ConnectionStatsParams added in v0.15.3

type ConnectionStatsParams struct {
	UpdateInterval      time.Duration
	CodecType           webrtc.RTPCodecType
	GetTotalBytes       func() uint64
	GetIsReducedQuality func() bool
}

type Snapshot added in v0.15.3

type Snapshot struct {
	Initialized      bool
	TotalPacketsLost uint32
	HighestSeqNum    uint32
}

Jump to

Keyboard shortcuts

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