Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Kind of a random request, but something that would be cool nonetheless; would there be anyway I could make Spotify (and possibly iTunes etc.) pause when I start playing a YouTube video, and then start again once the video ends or I pause it?

Is there any software that would allow me to do this? Or a language that would be able to accomplish this?

64bit Windows 7

share|improve this question
What's your OS? – slhck Jun 26 '12 at 11:50
Sorry, should have mentioned. 64bit Windows 7 – Sam Jun 26 '12 at 12:23
Did you ever solve this issue? – Rob Jun 11 '13 at 11:14
No, I did not solve this issue. – Sam Jun 27 '13 at 11:34

I built ( to solve this problem. It works with iTunes, Spotify, and many other music players and will mute/pause it for YouTube or any other video or foreground sound.

share|improve this answer

Haven't tested it, but I think it's doable.

First, add this wrapper to your spotify: This will give you a REST interface to control playback.

Now, create a chrome (I assume that's what you're using. If not, there are probably similar options for other browsers as well) extension that works for everything on YouTube's domain and add this: Change the code to pause/resume spotify when a certain event happens on YT player.

As I'm intrested in a solution myself as well, I'll probably try it out sometime soon and will then update this answer with the results. Will most likely create/use a lightweight node server to wrap Spotify instead, because Tomcat seems like an overkill and all you (I) actually need is the play/pause functionality.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .