GPMDP / electron-chromecast

Chromecast API wrapper for Electron applications
MIT License
158 stars 20 forks source link

Music becomes unpaused when chromecast disconnects from inactivity (emitting the wrong event on disconnect?) #53

Open Trucido opened 6 years ago

Trucido commented 6 years ago

https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/issues/3071

OS: Windows 10

GPMDP Version: 4.5.0

Issue Descriptions: Sorry to be brief here but wanted to bring this up before I forget. Issue: GPMDP in paused mode resumes music by itself when a connected chromecast device times out and drops connection. This results in current playlist being resumed out of default audio output without me un-pausing playback. In google-chrome, it is normal for a chromecast to time out and disconnect after a period of inactivity but it does not resume a paused playlist like i've noticed occurs in GPMDP. Not sure if related to the Windows integration, I do have that enabled and will follow up here if I can track down if any of the settings are related. Steps to Reproduce:

  1. Connect GPMDP to a chromecast
  2. Start playing music
  3. Pause music
  4. Wait until inactivity timeout period for chromecast to disconnect
  5. Run back to your computer to pause the music coming out of your default playback device which suddenly became unpaused (lol)
johnpane commented 4 years ago

I am experiencing this same issue on macOS. Does anyone have a fix or workaround?