connectionquality

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxMOS = float32(4.5)
)
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, at time.Time)

func (*ConnectionStats) AddLayerTransition added in v1.4.0

func (cs *ConnectionStats) AddLayerTransition(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) ReceiverReportReceived added in v1.4.0

func (cs *ConnectionStats) ReceiverReportReceived(at time.Time)

func (*ConnectionStats) Start added in v0.15.3

func (cs *ConnectionStats) Start(trackInfo *livekit.TrackInfo, at time.Time)

func (*ConnectionStats) UpdateLayerMute added in v1.4.0

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

func (*ConnectionStats) UpdateMute added in v1.4.0

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

type ConnectionStatsParams added in v0.15.3

type ConnectionStatsParams struct {
	UpdateInterval    time.Duration
	MimeType          string
	IsFECEnabled      bool
	IsDependentRTT    bool
	IsDependentJitter bool
	GetDeltaStats     func() map[uint32]*buffer.StreamStatsWithLayers
	Logger            logger.Logger
}

Jump to

Keyboard shortcuts

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