-
-
Notifications
You must be signed in to change notification settings - Fork 486
fix: use media session by default on mac and hide setting to disable #1692
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
Open
fogrye
wants to merge
1
commit into
jeffvli:development
Choose a base branch
from
fogrye:fix/macos-media-keys
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After thinking about it some more, macOS should probably remain with mediasession disabled by default because the user explicitly needs to accept the prompt for trusted accessibility before it can even work.
If the setting is enabled by default, then it would be confusing because the toggle would show that it's enabled, when in reality it's being blocked by the OS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me explain, app should not bind to keys and in case of macos with media session enabled it won't bind based on condition on line 12 same as no other mac app do. When you enable mediasession you give mac native "now playing" functionality control over playback so media keys would work same as headset keys do. Accessibility feature will not be called once and app will function just fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this? From my understanding, macOS blocks all media keys from the app unless explicitly allowed by the user under accessibility.
The reason to keep it disabled by default behind the user toggle is so that the user knows and understands why their media hotkeys are not working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct. There should be a way to prompt the user for this though. A lot of apps prompt the user when the app is launched, but Feishin does not trigger this prompt.
I think having this option set to enabled by default is good, because this is what I'd expect from a Music player on macOS, BUT someone needs to figure out how to prompt the user.
Also in the past I had issues with the accessibility permissions after switching builds of Feishin and macOS has difficulty detecting this sometimes. But maybe that was just me and it actually works fine anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't have to prompt user if you don't bind media playback keys. you don't have to bind keys since OS will handle them on it's own same to other music players. If we agree that enabled by default is good on macos I see no point to have option to disable it since it makes things worse: you have to bind to media keys and give app accessibility permissions which it doesn't need and lose convenience of headset media control