Unable to control media player (except for volume)
I've just reinstalled HASS.agent, updating to the latest 2.1.0-beta1 on both PC and HA, and am able to see my media_player in HA, including cover art and progress bar. However, I am unable to use next, previous, or play/pause. Tried in Tidal, Windows Media Player, and YouTube Music (progressive web app). Volume controls are the only bit that work. Any ideas on what to look at?
2 Replies
Realized I was not in fact on the latest beta (2.1.1-beta2), but now I am. Same issue though.
Turned on extended logging. Looks like the agent is getting the command from HA.
2024-12-11 21:11:41.187 -08:00 [WRN] [MEDIA] New MediaSession active
2024-12-11 21:11:41.188 -08:00 [INF] [MEDIA] Now playing: a-ha - Take on Me
2024-12-11 21:11:41.203 -08:00 [INF] [MEDIA] New state: Playing
2024-12-11 21:11:46.337 -08:00 [INF] [MEDIA] Command received: Pause
[ pause did not happen, so I paused it on the youtube music app ]
2024-12-11 21:12:17.593 -08:00 [INF] [MEDIA] New state: Paused
2024-12-11 21:12:20.515 -08:00 [INF] [MEDIA] Command received: Play
[ play did not happen ]
OK, on a lark I thought I would try my keyboard's media control keys, and sure enough they were not working either, which pointed the finger away from HASS.Agent. A little more googling led me to look for an app that captured the hardware keys, and there is indeed a Chrome flag that does so: chrome://flags/#hardware-media-key-handling - disabling that solved both the HASS.Agent issue and the keyboard. So, nothing to see here 🙂That is actually pretty interesting!
Thank you for the info 😄