Documentation ¶
Index ¶
- Constants
- func AudioTrackScore(params TrackScoreParams, normFactor float32) float32
- func LossBasedTrackScore(params TrackScoreParams) float32
- func Score2Rating(score float32) livekit.ConnectionQuality
- func VideoTrackScore(params TrackScoreParams, normFactor float32) float32
- type ConnectionStats
- type ConnectionStatsParams
- type TrackScoreParams
Constants ¶
View Source
const ( MinScore = float32(1) MaxScore = float32(5) )
View Source
const (
UpdateInterval = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func AudioTrackScore ¶
func AudioTrackScore(params TrackScoreParams, normFactor float32) float32
func LossBasedTrackScore ¶
func LossBasedTrackScore(params TrackScoreParams) float32
rtcmos gives lower score when screen share content is static. That is due to use of bits / pixel / frame in the model. Even though the frame rate is low, the bit rate is also low and the resolution is high. Till rtcmos model can be adapted to that scenario, use loss based scoring.
func Score2Rating ¶
func Score2Rating(score float32) livekit.ConnectionQuality
func VideoTrackScore ¶
func VideoTrackScore(params TrackScoreParams, normFactor float32) float32
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(trackInfo *livekit.TrackInfo)
type ConnectionStatsParams ¶
Click to show internal directories.
Click to hide internal directories.