Documentation
¶
Index ¶
- Constants
- func AudioTrackScore(params TrackScoreParams, normFactor float32) float32
- func Score2Rating(score float32) livekit.ConnectionQuality
- func ScreenshareTrackScore(params TrackScoreParams) float32
- 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 ¶ added in v1.1.0
func AudioTrackScore(params TrackScoreParams, normFactor float32) float32
func Score2Rating ¶
func Score2Rating(score float32) livekit.ConnectionQuality
func ScreenshareTrackScore ¶ added in v1.1.0
func ScreenshareTrackScore(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 VideoTrackScore ¶ added in v1.1.0
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 ¶ 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(trackInfo *livekit.TrackInfo)
type ConnectionStatsParams ¶ added in v0.15.3
Click to show internal directories.
Click to hide internal directories.