connectionquality

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionScore

func ConnectionScore(cur, prev *ConnectionStat, kind livekit.TrackType) float64

func Loss2Score

func Loss2Score(loss uint32, reducedQuality bool) float64

func Score2Rating

func Score2Rating(score float64) livekit.ConnectionQuality

Types

type ConnectionStat

type ConnectionStat struct {
	PacketsLost  uint32
	Delay        uint32
	Jitter       uint32
	TotalPackets uint32
	LastSeqNum   uint32
}

type ConnectionStats

type ConnectionStats struct {
	Curr  *ConnectionStat
	Prev  *ConnectionStat
	Score float64
}

func NewConnectionStats

func NewConnectionStats() *ConnectionStats

func (*ConnectionStats) CalculateAudioScore

func (cs *ConnectionStats) CalculateAudioScore() float64

Jump to

Keyboard shortcuts

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