connectionquality

package
v1.13.11 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MaxMOS = float32(4.5)
	MinMOS = float32(1.0)
)
View Source
const (
	UpdateInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionStats

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

func NewConnectionStats

func NewConnectionStats(params ConnectionStatsParams) *ConnectionStats

func (*ConnectionStats) AddBitrateTransition added in v1.4.0

func (cs *ConnectionStats) AddBitrateTransition(bitrate int64)

func (*ConnectionStats) AddBitrateTransitionAt added in v1.4.5

func (cs *ConnectionStats) AddBitrateTransitionAt(bitrate int64, at time.Time)

func (*ConnectionStats) AddLayerTransition added in v1.4.0

func (cs *ConnectionStats) AddLayerTransition(distance float64)

func (*ConnectionStats) AddLayerTransitionAt added in v1.4.5

func (cs *ConnectionStats) AddLayerTransitionAt(distance float64, at time.Time)

func (*ConnectionStats) Close added in v0.15.3

func (cs *ConnectionStats) Close()

func (*ConnectionStats) GetScoreAndQuality added in v1.4.0

func (cs *ConnectionStats) GetScoreAndQuality() (float32, livekit.ConnectionQuality)

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(codecMimeType mime.MimeType, isFECEnabled bool)

func (*ConnectionStats) StartAt added in v1.4.5

func (cs *ConnectionStats) StartAt(codecMimeType mime.MimeType, isFECEnabled bool, at time.Time)

func (*ConnectionStats) UpdateCodec added in v1.8.4

func (cs *ConnectionStats) UpdateCodec(codecMimeType mime.MimeType, isFECEnabled bool)

func (*ConnectionStats) UpdateLayerMute added in v1.4.0

func (cs *ConnectionStats) UpdateLayerMute(isMuted bool)

func (*ConnectionStats) UpdateLayerMuteAt added in v1.4.5

func (cs *ConnectionStats) UpdateLayerMuteAt(isMuted bool, at time.Time)

func (*ConnectionStats) UpdateMute added in v1.4.0

func (cs *ConnectionStats) UpdateMute(isMuted bool)

func (*ConnectionStats) UpdateMuteAt added in v1.4.5

func (cs *ConnectionStats) UpdateMuteAt(isMuted bool, at time.Time)

func (*ConnectionStats) UpdatePause added in v1.4.5

func (cs *ConnectionStats) UpdatePause(isPaused bool)

func (*ConnectionStats) UpdatePauseAt added in v1.4.5

func (cs *ConnectionStats) UpdatePauseAt(isPaused bool, at time.Time)

type ConnectionStatsParams added in v0.15.3

type ConnectionStatsParams struct {
	UpdateInterval     time.Duration
	IncludeRTT         bool
	IncludeJitter      bool
	EnableBitrateScore bool
	ReceiverProvider   ConnectionStatsReceiverProvider
	SenderProvider     ConnectionStatsSenderProvider
	Logger             logger.Logger
}

type ConnectionStatsReceiverProvider added in v1.5.0

type ConnectionStatsReceiverProvider interface {
	GetDeltaStats() map[uint32]*buffer.StreamStatsWithLayers
	GetLastSenderReportTime() time.Time
}

type ConnectionStatsSenderProvider added in v1.5.0

type ConnectionStatsSenderProvider interface {
	GetDeltaStatsSender() map[uint32]*buffer.StreamStatsWithLayers
	GetPrimaryStreamLastReceiverReportTime() time.Time
	GetPrimaryStreamPacketsSent() uint64
}

Jump to

Keyboard shortcuts

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