markferry / multizone-audio

A config generator for a multizone audio system based on snapcast, Mopidy and MQTT.
30 stars 5 forks source link

Play youtube videos on media players #13

Open markferry opened 2 years ago

markferry commented 2 years ago

I want to be able to play youtube (or any arbitrary media URL really) on any media player.

Add upnp support?

th3w1zard1 commented 2 years ago

Hello, me again. Still very interested in this project, still doing my research to figure out how best to set it up.

Mopidy actually has an addon for youtube, specifically Mopidy-Youtube this works great as a youtube music player or other audio purposes.

Using the MPD addon in HA you can click 'Add Stream' and paste a youtube url, prefixed by 'yt:'.

You can play any youtube video you want in your automations/scripts using this method. There's also a way to do it bypassing Mopidy and just using the Snapcast integration but I'm guessing that'll confuse all of your meta streams you have setup via snapcast-autoconfig and/or any other streams you currently have playing.