connectionquality

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateInterval = 2 * time.Second
)

Variables

This section is empty.

Functions

func AudioConnectionScore added in v0.15.3

func AudioConnectionScore(pctLoss float32, rtt uint32, jitter float32) float32

func Score2Rating

func Score2Rating(score float32) livekit.ConnectionQuality

func ToAnalyticsStream added in v0.15.4

func ToAnalyticsStream(ssrc uint32, deltaStats *buffer.RTPDeltaInfo) *livekit.AnalyticsStream

func ToAnalyticsVideoLayer added in v0.15.4

func ToAnalyticsVideoLayer(layer int, layerStats *buffer.LayerStats) *livekit.AnalyticsVideoLayer

func VideoConnectionScore added in v0.15.3

func VideoConnectionScore(pctLoss float32, reducedQuality bool) float32

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() float32

func (*ConnectionStats) OnStatsUpdate added in v0.15.3

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

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
	GetDeltaStats       func() map[uint32]*buffer.StreamStatsWithLayers
	GetQualityParams    func() *buffer.ConnectionQualityParams
	GetIsReducedQuality func() bool
	Logger              logger.Logger
}

Jump to

Keyboard shortcuts

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