macmediakeyforwarder icon indicating copy to clipboard operation
macmediakeyforwarder copied to clipboard

Play/Pause doesn't work with plugged in headphones

Open Patrick-Kladek opened this issue 7 years ago • 21 comments

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

Patrick-Kladek avatar Jan 11 '18 13:01 Patrick-Kladek

it should work now, can you please check it?

milgra avatar Feb 05 '18 15:02 milgra

@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

ronaldyuan avatar Feb 14 '18 17:02 ronaldyuan

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

joaodforce avatar Feb 14 '18 18:02 joaodforce

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)

Patrick-Kladek avatar Feb 15 '18 13:02 Patrick-Kladek

I think we should revert the commit I made (https://github.com/milgra/highsierramediakeyenabler/commit/d697595dda242dbc1d4b716f7545cef5a722f232) since it's making more problems and it seems it doesn't fix the problem properly.

sungholee3526 avatar Feb 16 '18 13:02 sungholee3526

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

milgra avatar Feb 16 '18 14:02 milgra

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

ronaldyuan avatar Feb 16 '18 17:02 ronaldyuan

hmm, thank you!

milgra avatar Feb 26 '18 14:02 milgra

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

42point avatar Mar 03 '18 14:03 42point

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?

sungholee3526 avatar Mar 05 '18 13:03 sungholee3526

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.

joaodforce avatar Mar 05 '18 14:03 joaodforce

@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

Patrick-Kladek avatar Mar 05 '18 14:03 Patrick-Kladek

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.

alejandroivan avatar Mar 15 '18 16:03 alejandroivan

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.

joaodforce avatar Mar 15 '18 16:03 joaodforce

It also doesn't work with Bose QC 35 headphones

Pedrobc89 avatar Apr 02 '18 20:04 Pedrobc89

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

simonepri avatar Apr 30 '18 20:04 simonepri

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.

Gohstgamer avatar Jun 20 '18 16:06 Gohstgamer

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

milgra avatar Nov 11 '18 13:11 milgra

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?

krueschi avatar Apr 13 '19 10:04 krueschi

@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

Patrick-Kladek avatar Apr 15 '19 06:04 Patrick-Kladek

Any progress on that issue?

FelixGraf avatar Sep 24 '19 12:09 FelixGraf