-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Media keys doesn't work #3574
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
Comments
Similar report in #3340. I quickly ran a test. Under Catalina and the play / pause was recognized by IINA. Under Monterey, 12.0.1, I experienced the reported behavior. With IINA playing and in focus the play / pause key started the Music app instead of pausing IINA. Seems like something changed in Big Sur. |
I found a problem. The property |
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
AnalysisIn FixingThe commit in the pull request:
|
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The commit in the pull request: - Adds the ability to set the state to `NowPlayingInfoManager.updateInfo` - Eliminates the method `NowPlayingInfoManager.updateState` - Changes `PlayerCore.fileStarted` to set the state to `playing` - Changes references to `updateState` to use `updateInfo`
The fix in PR #3579 has been merged into the develop branch. |
Closing. Fixed in IINA 1.3.0. |
Unfortunately I still have the same problem with version 1.3.0 Build 131 and MacOS 12.4 |
I just finished running a test where on my MacBook Pro with the M1 chip running macOS 12.4 I downloaded and installed IINA 1.3.0 from the main IINA site. I started IINA playing a video. The pause/play button worked and did not startup Music like it did before the fix. Now Playing in the Control Center in the menu bar showed IINA playing the video: It could be that there is another factor at play causing the fix to not work on your machine. I'm confused as to what that could be. Open IINA Preferences/Key Bindings and double check that "Use system media control" is checked: If you find it disabled then please enable it, restart IINA and test the media keys again. |
"Use system media control" was unchecked! I activated it and restarted iina and now it works! |
Great to hear it is working for you! I checked the code and "Use system media control" is enabled by default. My only guess is that maybe you were testing the effect of this setting while trying to get media keys to work. I really appreciate you testing the release to confirm the defect is fixed. Very helpful. Thank you for taking the time to report this defect and especially for testing the fix in 1.3.0. |
System and IINA version:
Expected behavior:
Clicking the play / pause button on the keyboard should cause the video to start or stop.
Actual behavior:
With iina open and clicking the play button, the "Music" system app opens. With all the other programs, however, the button works (VLC, videos on Firefox etc.).
In fact, iina is the only one that never appears in the playback menu (attached image). This happens from Catalina I think. I attach screenshots to make it clear.
Steps to reproduce:
Open any audio or video with iina.
How often does this happen?
Always.
MPV 0.34.0 have the same problem.
The text was updated successfully, but these errors were encountered: