Media keys not working.
Operating system
Microsoft Windows [Version 10.0.22621.963]
YouTube Music Desktop App Version
v0.9.7
Bug description
instead of reopening #41 i decided to make a new thread as im unsure if im having the same bug my media keys seem to not be caught by the app.
Steps to reproduce
No response
Relevant log output
the command provided and location provided seems to not exist
Been using media keys and its working fine. Could you provide me your keyboard name?
steelseries apex 3
im on Microsoft Windows [Version 10.0.19045.2364] it should work, probably an issue with your keyboard software.
but it could also be an issue if you have multiple media sources
Media keys are not working for me on Ubuntu 22.10. Do I need any extra setup for it?
I'm using Logitech G512. Media keys from my laptop keyboard (Dell inspiron) are not working either
Also having the same issue in Fedora with wayland - is there any way to diagnose?
Output from xev when touching the play/pause key:
KeyPress event, serial 34, synthetic NO, window 0x3a00001,
root 0x49a, subw 0x0, time 367409856, (6,596), root:(3209,1018),
state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x3a00001,
root 0x49a, subw 0x0, time 367409922, (6,596), root:(3209,1018),
state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
I am on a macbook with macOS 13.4 and having same problem with both laptop keyboard and Logitech G512.
I think this should be a important issue?
Media keys are currently not working for me on Fedora 39 running wayland.
When I press the media key all I get is a circle with a line through it. Fedora seems to not be recognizing the app as a media player.
App version: 0.11.6
I had the same issue, my media keys weren't connected by default on my sway config. I am not on my desktop, I can try to update this tomorrow with my config.
So this is the relevant information on my ~/.config/sway file.
I use pactl (PulseAudio) to bind the key
set $pctl playerctl -p playerctld
bindsym XF86AudioPrev exec --no-startup-id $pctl previous
bindsym XF86AudioNext exec --no-startup-id $pctl next
bindsym XF86AudioPlay exec --no-startup-id $pctl play-pause
bindsym XF86AudioStop exec --no-startup-id $pctl stop
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
# This is something else i found to be able to control multiple sources
# You can cycle trough them by pressing your mod key + next/previous
bindsym $mod+XF86AudioPrev exec playerctld unshift && notify-send \
"Now controlling player $(playerctl -l | head -n1)" --app-name playerctld
bindsym $mod+XF86AudioNext exec playerctld shift && notify-send \
"Now controlling player $(playerctl -l | head -n1)" --app-name playerctld
I'm on MacOS Sonoma on a Macbook Air M1 and the media keys are not working. I'm using a Apple Magic keyboard with touch id.
+1 Windows 10 Version 22H2 Build 19045.4780
Media keys aren't working on M4 MBP also unfortunately
Same for me. M1 MBP on Sequoia 15.4.1 using Logitech MX Keys as well as Airpods Pro. Using the play/pause button will open Apple Music.