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

[request] stop any sound playing instead of mute #7

Closed
makedir opened this issue Sep 10, 2021 · 2 comments
Closed

[request] stop any sound playing instead of mute #7

makedir opened this issue Sep 10, 2021 · 2 comments
Assignees

Comments

@makedir
Copy link

makedir commented Sep 10, 2021

Not sure if this would be possible, but could you maybe implement an option to turn on, that instead of mute any audio source will be stopped?

Windows has global hotkey for media play/pause I think, at least you can do this with AutoHotkey with "^!Down::Send {Media_Stop}"

@lx-s
Copy link
Owner

lx-s commented Sep 14, 2021

You mean, pause whatever is currently registered with Windows as "Playing" and showing in this popup
grafik
?

I can look into it!

@lx-s lx-s added this to the 1.7 milestone Dec 8, 2021
@lx-s lx-s self-assigned this Dec 8, 2021
@lx-s lx-s removed this from the 1.7 milestone Feb 18, 2022
@lx-s
Copy link
Owner

lx-s commented Apr 12, 2022

I looked at this issue but there are several problems.

  • The MediaPlayback API is not easily accessible from a simple desktop app
  • It is intended for your own playback to be controlled and not to control other apps
  • WinMute could fake the hardware button for PLAY/PAUSE found on most keyboards, but it's not possible to send this key when the PC is locked. Also it's not possible to get the playback status beforehand, so if your media player is paused, it could result in playback being started when a mute condition triggers.

Because of all that, I have to close this issue with "can't fix" for now. Sorry :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants