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

Play/Pause doesn't work with plugged in headphones #19

Open
Patrick-Kladek opened this issue Jan 11, 2018 · 21 comments
Open

Play/Pause doesn't work with plugged in headphones #19

Patrick-Kladek opened this issue Jan 11, 2018 · 21 comments

Comments

@Patrick-Kladek
Copy link

Summary

When listening to music with classic headphones (3.5 mm headphone jack) a press on play/pause is executed twice. This means the music stops and immediately plays again. It is not possible to pause the sound with headphones

Steps to Reproduce

Open iTunes and start a song. Insert headphones and press the play/pause button

Actual Results

The music stops and immediately starts playing again

Expected Results

The music stops whenever triggered from keyboard or headphones

Note

Next (2x play) & previous (3x play) works but the music also stops for a moment

Device

iMac 5K Late 2015
macOS 10.13.2

@milgra
Copy link
Owner

milgra commented Feb 5, 2018

it should work now, can you please check it?

@ronaldyuan
Copy link

ronaldyuan commented Feb 14, 2018

@milgra I'm noticing the same problem. I've been using the app for a couple of weeks and thought I remembered my headphone jack working earlier. Now it's not. Just reinstalled 1.8 and still nothing.

I have the exact same issue. Music plays for about 1 second and immediately pauses again. Button and the keyboard works perfectly though.

Device: MacBook Air 2017

@joaodforce
Copy link

Im with the Version 1.8 build 3, it my beatsX pause button dont work.
Am i on the latest version?

@Patrick-Kladek
Copy link
Author

Play & Pause works fine but unfortunately next track (double press) and previous track (3x press) does not work anymore. 2 presses are interpreted as pause & play (the music stops and plays right again)

@sungholee3526
Copy link
Contributor

sungholee3526 commented Feb 16, 2018

I think we should revert the commit I made (d697595) since it's making more problems and it seems it doesn't fix the problem properly.

@milgra
Copy link
Owner

milgra commented Feb 16, 2018

hmm, I added an older version ( without the modification ) to the download page till I figure out what the problem is : http://milgra.com/high-sierra-media-key-enabler.html

@ronaldyuan
Copy link

If it helps, I just used the v1.7 (build 1) you posted and the same headphone problem exists.

@milgra
Copy link
Owner

milgra commented Feb 26, 2018

hmm, thank you!

@42point
Copy link

42point commented Mar 3, 2018

1.9 (1) - still cant't pause/play with Apple Headphones.

@sungholee3526
Copy link
Contributor

sungholee3526 commented Mar 5, 2018

I've tried two ways but I failed.

  1. Detect if there is any difference in event data depending on which button is pressed (that is play/pause button on keyboard or headphone remote button) - I couldn't find any difference. Maybe we have to go much lower level to get this info, but I'm a noob programmer and have no idea what's happening down there.
  2. Make HSMKE a now playing app so that the OS wouldn't send event to other players. - It works. But the app won't resign now playing state. That means when HSMKE is paused, iTunes cannot recieve any event and remote button won't do anything.

Any idea?

@joaodforce
Copy link

The main problem is that this issue its no consistent, I'm still on 1.8 build 3 (same build from my last comment) and noticed that right now it is working with my beatsX bluetooth headphones. And I cannot reproduce the non working state at the moment, but I'm sure that later it won't work.

@Patrick-Kladek
Copy link
Author

@joaodforce I think that the bluetooth headphones send next or previous directly instead of 2 times play/pause key to the Mac and therefore has the same behavior as the keyboard

@alejandroivan
Copy link
Contributor

Looks like this problem is actually extended to several Bluetooth headphones. In my particular setup (Motorola S305: https://www.amazon.com/Motorola-Bluetooth-Stereo-Headset-Microphone/dp/B002BH3I9U) it doesn't work with next/prev buttons.

I tested it some weeks ago, so I'll try later, but I believe that only Play/Pause button works.

@joaodforce
Copy link

After my last comment I noticed a pattern in the issue, It looks like if the headphones are connected before you first open HSMKE, they work as you would expect, if you connect it afterwards then it wond register.
However it is not that simple. If your headphones have already been locked to another software, if you open HSMKE it will still control the other software.
The second part of my explanation is not 100% accurate, since I have done several tests but have not noticed a Absolute pattern. since after HSMKE has been opened once the the pattern is not applied If you repeat tests.
I could only reproduce it doing a lot of Shutting down and testing, rinse and repeat.

My guess would be that HSMKE is not registering some kinds of devices to its functionality.
There might be an event that gets triggered once a new device with control is available and its not being treated there, I'm not familiar with objective - C so i cant test it myself.

@Pedrobc89
Copy link

It also doesn't work with Bose QC 35 headphones

@simonepri
Copy link

Not working also with Fitbit Flyer (complete mute until i quit the app)

@Gohstgamer
Copy link

Btw. same issue with the standard Apple EarPods. Volume regulation works, skipping rewind is very buggy and sometimes stops playing music or starts playing music.

@milgra
Copy link
Owner

milgra commented Nov 11, 2018

AirPods play/pause/next works fine, I will check out EarPods when I get back home.

@krueschi
Copy link

Stumbled upon this issue. I can confirm that it works out of the box as expected with Sony MDR-ZX770 (Bluetooth headphones) start/stop + skipping / rewind just fine. Was there a fix in the meantime? Or is this issue only related to some hardware?

@Patrick-Kladek
Copy link
Author

@krueschi this issue is only related to cable headphones (3.5mm headphone jack). The ones included with an iPhone for example.

Bluetooth headphones work fine

@FelixGraf
Copy link

Any progress on that issue?

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

No branches or pull requests