mafintosh / chromecasts

Query your local network for Chromecasts and have them play media
MIT License
1.45k stars 68 forks source link

Would it be possible to play a youtube video? #3

Open ivanmayes opened 9 years ago

mafintosh commented 9 years ago

Yea! Checkout https://github.com/fent/node-ytdl-core. We use that in playback to chromecast youtube vidoes

beaugunderson commented 9 years ago

oh, that's even better than what i came up with playing around with this idea yesterday; i was using castv2-youtube to launch the youtube app but there's no callback when the video is done and some other issues that make it a pain in the ass... just downloading the video is way easier

(my end goal is to add playing a public youtube/vimeo list at random to idlecast)

deanputney commented 7 years ago

I have a similar goal here, I'd like to add a list of public YouTube videos to idlecast. Is it possible to stream ytdl straight into a chromecast? Or would you need to download the file first?

Edit: I think I might download these files and cache them on the machine instead. This seems to work well enough, and that should prevent me from having videos get removed from YouTube or anything like that. ytdl will make that easy, thanks for the tip!