Would this be possible? To pause alexa music if video on youtube started?

I can integrate alexa, but how could i integrated a video via chrome or operah?

Depends on where you open YouTube.

You need something to tell you youtube is on and playing. BUT this doesnt come from YouTube itself. YouTube doesnt have a service you can subscribe to (at least im pretty sure they dont) that says user X is using YouTube.

Instead, It comes from the media player(s) that would be playing youtube. In my home that means various TVs (Android TV, LG WebOS, each have integrations on their own). I can also monitor my Xboxes and Fire TVs yo know when they start YouTube. There are various ways but in short once you have this. If one pops up running YouTube you issue the pause command to Alexa. (you may need to add the Alexa Media Player integration to be able to control those)

Your problems will be:
You dont know what user is on YouTube on these monitored devices. So for instance if you’re listening to music and the roomie starts YouTube…

1 Like

its just for me in my office, i have a home so this wouldnt be an issue

1 Like