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 packet stats and improve padding bitrate assignment #1774

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Nov 24, 2021

Description

This PR solves a potential issue when deciding which streams will send padding. The PaddingManager now filters and only assigns bitrate to those subscribed streams that have video that is not muted.

This PR also adds logs to keep track of packets received and sent per SSRC while also accounting for the video bitrate with or without padding.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

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

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.

Good catch! I also like the new additions to the stats.

@@ -157,6 +157,8 @@ class MediaStream: public MediaSink, public MediaSource, public FeedbackSink,
bool isAudioMuted() { return audio_muted_; }
bool isVideoMuted() { return video_muted_; }

bool canSendPadding() { return !isPublisher() && hasVideo() && !isVideoMuted(); }
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@lodoyun lodoyun merged commit 654aa32 into lynckia:master Nov 24, 2021
@lodoyun lodoyun deleted the add/packetStats branch November 24, 2021 12:44
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