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 player audio focus not respecting mute #10275

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

J-Stutzmann
Copy link
Contributor

This issue is right on the line between feature and bug, so I'm selfishly calling it a bug. Very straightforward fix, tested with no obvious problems.

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Puts checks for mute state around each call to change audio focus in player
  • Makes toggling mute state request/abandon focus

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@TobiGr TobiGr added bug Issue is related to a bug player Issues related to any player (main, popup and background) labels Jul 31, 2023
Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@J-Stutzmann
Copy link
Contributor Author

Last commit for including #10281 to fix snyk check, let me know if I need to undo it.

@J-Stutzmann J-Stutzmann marked this pull request as draft August 2, 2023 05:21
@TobiGr
Copy link
Member

TobiGr commented Aug 2, 2023

We prefer git rebase because rebasing keeps the history clean

@J-Stutzmann J-Stutzmann marked this pull request as ready for review August 3, 2023 03:47
@sonarcloud
Copy link

sonarcloud bot commented Aug 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TobiGr TobiGr merged commit 50d7d1b into TeamNewPipe:dev Aug 3, 2023
4 of 5 checks passed
@J-Stutzmann J-Stutzmann deleted the fix/audio-focus branch August 3, 2023 22:44
This was referenced Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow outside audio while in-player mute is active
2 participants