Documentation ¶
Index ¶
- func AudioConnectionScore(pctLoss float32, rtt uint32, jitter float32) float32
- func Score2Rating(score float32) livekit.ConnectionQuality
- func ToAnalyticsStream(ssrc uint32, rtpStats *livekit.RTPStats) *livekit.AnalyticsStream
- func ToAnalyticsVideoLayer(layer int, layerStats *buffer.LayerStats) *livekit.AnalyticsVideoLayer
- func VideoConnectionScore(pctLoss float32, reducedQuality bool) float32
- type ConnectionStats
- type ConnectionStatsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AudioConnectionScore ¶
func Score2Rating ¶
func Score2Rating(score float32) livekit.ConnectionQuality
func ToAnalyticsStream ¶
func ToAnalyticsStream(ssrc uint32, rtpStats *livekit.RTPStats) *livekit.AnalyticsStream
func ToAnalyticsVideoLayer ¶
func ToAnalyticsVideoLayer(layer int, layerStats *buffer.LayerStats) *livekit.AnalyticsVideoLayer
func VideoConnectionScore ¶
Types ¶
type ConnectionStats ¶
type ConnectionStats struct {
// contains filtered or unexported fields
}
func NewConnectionStats ¶
func NewConnectionStats(params ConnectionStatsParams) *ConnectionStats
func (*ConnectionStats) Close ¶
func (cs *ConnectionStats) Close()
func (*ConnectionStats) GetScore ¶
func (cs *ConnectionStats) GetScore() float32
func (*ConnectionStats) OnStatsUpdate ¶
func (cs *ConnectionStats) OnStatsUpdate(fn func(cs *ConnectionStats, stat *livekit.AnalyticsStat))
func (*ConnectionStats) Start ¶
func (cs *ConnectionStats) Start()
type ConnectionStatsParams ¶
type ConnectionStatsParams struct { UpdateInterval time.Duration CodecType webrtc.RTPCodecType GetTrackStats func() map[uint32]*buffer.StreamStatsWithLayers GetQualityParams func() *buffer.ConnectionQualityParams GetIsReducedQuality func() bool Logger logger.Logger }
Click to show internal directories.
Click to hide internal directories.