Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qualityLevel stat #1617

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Jul 21, 2020

Description

This PR adds stat to track QualityLevel.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

@@ -59,6 +59,8 @@ void QualityManager::onConnectionQualityUpdate(ConnectionQualityLevel level) {
selectLayer(false);
}
last_connection_quality_level_received_ = level;
stats_->getNode()["qualityLayers"].insertStat("currentQualityLevel",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've decided to add the stat here in QualityManager. This is where the quality check changes affect the decisions. I could be convinced to put it directly in BandwidthConnectionQualityCheck, though.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lodoyun lodoyun merged commit 3da3b8d into lynckia:master Jul 22, 2020
@lodoyun lodoyun deleted the add/trackQualityLevelStats branch July 22, 2020 08:11
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants