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

fix, updates lastN after exiting the pip mode #10491

Closed
wants to merge 1 commit into from

Conversation

Raso0ol
Copy link

@Raso0ol Raso0ol commented Nov 30, 2021

This change is regarding the Issue #10257 reported by @lultimouomo.
It separates the applicable last-n and the one that is configurable by the last-n configuration features, such as VideoQualitySlider or potentially any other feature. By doing so, it triggers Lastn/middleware to recalculate a new last-n as needed.

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

@saghul
Copy link
Member

saghul commented Dec 1, 2021

Jenkins please test this please.

@Raso0ol
Copy link
Author

Raso0ol commented Dec 1, 2021

Hi, it is updated. @saghul

@saghul
Copy link
Member

saghul commented Dec 1, 2021

Jenkins please test this please.

@saghul
Copy link
Member

saghul commented Apr 25, 2022

Sorry for the delay. I'm looking at this now, and while I can repro I don't understand where the breakage comes from.

When you go into PiP mode then we detect reduced UI mode, then disable the filmstrip, which yields a last N value of 1.

When we come back we reverse that, so that code path should no longer be taken and as a result we should not override it with 1.

I think this PR is overly complicated to fix the issue at hand.

saghul added a commit to saghul/jitsi-meet that referenced this pull request Apr 25, 2022
If last N goes down to 1 it will be stuck there since it's > 0 and will
be our `lastNSelected`. When limits are applied we'll take the minimum,
so it will end up being 1.

Once can end up in last N being 1 by several means, the more obvious one
by entering Picture-in-Picture mode on mobile.

Fix it by not using the previous last N value for the current
calculation, at all.

Fixes: jitsi#10257
Closes: jitsi#10491
saghul added a commit that referenced this pull request Apr 25, 2022
If last N goes down to 1 it will be stuck there since it's > 0 and will
be our `lastNSelected`. When limits are applied we'll take the minimum,
so it will end up being 1.

Once can end up in last N being 1 by several means, the more obvious one
by entering Picture-in-Picture mode on mobile.

Fix it by not using the previous last N value for the current
calculation, at all.

Fixes: #10257
Closes: #10491
@lultimouomo
Copy link

I think this PR is overly complicated to fix the issue at hand.

The separation between config_last_n and applied_last_n was meant to preserve the functionality of videoQualitySlider, which I believe might have been broken by #11425 .
It seems to me that now if lastN is modified through the quality the slider, anytime one this events happens that value will be overridden. I didn't try that though, I might be wrong.

@saghul
Copy link
Member

saghul commented Apr 27, 2022

You might be right, we have changed how the video quality slider operates a couple of times.

In that case I'd say incorporating the video slider value into the computation is probably the way to go.

hristoterezov pushed a commit that referenced this pull request Jul 19, 2023
If last N goes down to 1 it will be stuck there since it's > 0 and will
be our `lastNSelected`. When limits are applied we'll take the minimum,
so it will end up being 1.

Once can end up in last N being 1 by several means, the more obvious one
by entering Picture-in-Picture mode on mobile.

Fix it by not using the previous last N value for the current
calculation, at all.

Fixes: #10257
Closes: #10491
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.

None yet

4 participants