steve228uk / YouTube-Music

:musical_note: A Mac app wrapper for music.youtube.com
https://ytmusic.app
MIT License
2.78k stars 203 forks source link

Toggles play/pause when bluetooth headphones is connected/disconnected incorrectly. #153

Open preetishhs opened 2 years ago

preetishhs commented 2 years ago

When the music is paused and I disconnect the bluetooth earphones, music starts playing automatically from Mac speakers which are pretty loud. happens frequently as I switch between mac and my phone. causes a lot of "oops" moment in my office. (My earphone has long press feature to switch between devices) Its the same case even if I disconnect by clicking on the bluetooth option from menu bar.

When the Music is playing and I disconnect the bluetooth headphones it pauses which is great. I think it is toggling the state but not really looking if the device is actually connected or disconnected.

https://user-images.githubusercontent.com/11540751/148636416-b61d17f6-78e8-426d-9529-47d003b31554.mp4

rafrafavi commented 2 years ago

Same issue. Just figured out it was the app. Had to uninstall...

preetishhs commented 2 years ago

@rafrafavi I am using the PWA version now, It's actually working great! It even pauses the music when I disconnect the headphones, doesn't toggle play incorrectly.

toddnief commented 2 years ago

Same issue!

yoland68 commented 2 years ago

This is fixed in the newest version (not the one you download from the website, which is still on 1.0.8). You have to download it from the github release (currently 1.3.3 works for me)