Open guyluz11 opened 9 months ago
I have managed to use the cast package and even make it more accessible and add new functionality and all of it will be added to the app in the next version.
YouTube API for Chromecast has different implementations that we need to add separately. Here are some example resources for that: https://github.com/castjs/castjs (the package is written in one page). https://bugs.xdavidhu.me/google/2021/04/05/i-built-a-tv-that-plays-all-of-your-private-youtube-videos/ (some article on the matter).
YouTube has its API for casting and is not part of the Chromecast casting protocol. It had API for Chromecast but it is deprecated.
Here are some resources for the new API (didn't test that it works)
Worked with that one and it worked https://github.com/i8beef/node-red-contrib-castv2/blob/master/lib/YouTubeController.js
Another option for reference https://www.npmjs.com/package/youtube-remote (the package is written in one page).
https://bugs.xdavidhu.me/google/2021/04/05/i-built-a-tv-that-plays-all-of-your-private-youtube-videos/ (some article I found).