Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Global media shortcut (play/pause) button lacks state awareness #154

Open
jbergstroem opened this issue Sep 12, 2017 · 8 comments
Open

Global media shortcut (play/pause) button lacks state awareness #154

jbergstroem opened this issue Sep 12, 2017 · 8 comments

Comments

@jbergstroem
Copy link
Contributor

The touchbar icons seems to lack the state of the player; eg play/pause (is track playing) or if a track is liked.

@salomvary
Copy link
Owner

Play/pause state works for me. If it still seems broken for you, please provide more details.

Like state never worked (it definitely should). @rmaes4 did some work to implement like state management on the touch bar but we never got to finish it.

@rmaes4
Copy link
Contributor

rmaes4 commented Oct 5, 2017

Sorry I’ve been busy. Maybe I could take a look this weekend

@jbergstroem
Copy link
Contributor Author

@salomvary said:
Play/pause state works for me. If it still seems broken for you, please provide more details.

Yep, can confirm. It's just state (are we playing or are we paused) that doesn't.

@greatestape
Copy link

I'm having this issue, or some cousin to it.

  • When the touchbar button is controlling Soundcleod, it doesn't change state when I press it, but it does toggle play/pause in Soundcleod
  • When iTunes is playing music, play/pause still toggles Soundcleod and doesn't affect iTunes
  • I think I had this issue with the regular play/pause button on my older Macbook.

Let me know if you would like any logs or videos or whatever that would help diagnose this.

@jbergstroem
Copy link
Contributor Author

I realize now that I didn't express myself very well. I was specifically referring to the MediaPlayPause,MediaPlayNext,MediaPlayPrevious global shortcuts and not the buttons provided by Soundcleod.

@jbergstroem jbergstroem changed the title Touchbar buttons lacks state awareness Global media shortcut (play/pause) button lacks state awareness Oct 10, 2018
@apeeters
Copy link

Consider providing a similar behaviour as Google Play Music Desktop Player, their component is available as a library: https://github.com/MarshallOfSound/electron-media-service

@salomvary
Copy link
Owner

Thanks for the tip @apeeters, looks like using this library would be a good improvement (also solves ##179).

@jbergstroem
Copy link
Contributor Author

Perhaps the native mediakey support in chrome 73 can find its way back to electron as well: https://developers.google.com/web/updates/2019/02/chrome-73-media-updates

..too bad electron 5 (release in 3 weeks) is targeting chrome 72.

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

No branches or pull requests

5 participants