MarshallOfSound / Google-Play-Music-Desktop-Player-UNOFFICIAL-

A beautiful cross platform Desktop Player for Google Play Music
https://www.googleplaymusicdesktopplayer.com
MIT License
8.27k stars 767 forks source link

iPhone Headphone button triggers pause than play immediately #3155

Open nighto opened 6 years ago

nighto commented 6 years ago

OS: macOS High Sierra 10.13.4

GPMDP Version: 4.5.0

Issue Descriptions: Using a (regular, P2, non-lightning) iPhone headphone plugged on Macbook audio port, it register volume and play/pause buttons correctly. When pressing the pause button, GPMDP pauses for a split second than plays again. This doesn't happen if pressing media button on keyboard.

Steps to Reproduce: Get a P2 iPhone headphone (probably a regular one with buttons would work as well), plug on a Macbook computer and test. Perhaps this happens on Windows / Linux as well. Could test on Monday at work.

nighto commented 6 years ago

Just seen pull request #3063. Probably the same issue.

ghost commented 6 years ago

Same issue here. Using Apple EarPods on Mac OS High Sierra with v4.6.0 of GPMDP.

After patching the changes on the linked PR, play/pause doesn't work at all.

My procedure:

git clone https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-.git
cd Google-Play-Music-Desktop-Player-UNOFFICIAL- && npm install
[make changes]
npm run build
npm start
lorthirk commented 6 years ago

Also occurring with a V-MODA Crossfade M100 media control on the cable, MacOS.

EDIT: Disabling Apple RCD Agent (following this article) apparently fixes the issue.

strikekat commented 6 years ago

Happens for me with V-Moda Crossfade M100s too and some cheaper IEMs I have. I'm guessing it's any inline headphone remotes that will cause it. Disabling the RCD daemon does work (thank you), but you have to disable SIP to turn it off on 10.13.6 at least, which really doesn't make it a viable solution for everyone. I don't use iTunes, but I imagine it impacts media key functionality in there as well.

samtstern commented 5 years ago

I am seeing this too with 1More Triple Driver headphones. Workaround is to press and hold the button for 3s to change states.

romankydybets commented 5 years ago

@samtstern workaround is working. but let's leave this bug open