Big Red Button Puts Toddler in Command of Chromecast
#homeentertainmenthacks #reverseengineering #chromecast #pychromecast #raspberrypi #wemos #hackaday
-- Delivered by RssEverything service
Big Red Button Puts Toddler in Command of Chromecast
#homeentertainmenthacks #reverseengineering #chromecast #pychromecast #raspberrypi #wemos #hackaday
-- Delivered by RssEverything service
@DarkWraithLord #stremio can cast in UI. In CLI I like #catt, I used to use #mkchromecast, I sometimes go from python directly with #pychromecast, and recently I've been trying #castr.
Also from Chromium you can cast, but I use #firefox , so... :-)
In the end I've settled on, slightly larger than standard, yellow subtitles with a darker yellow drop shadow, in a serif font for my viewing pleasure, when a film needs subtitles.
So that's what #Gnomecast now requests of the #Chromecast via my slightly adapted #PyChromecast default media controller.
And I'll stop mucking about with PyChromecast now (;*
Ok, so I went back in, and have now further altered the default media controller code (in media.py) in #Pychromecast so that I can pass in subtitle formatting from #Gnomecast and get PyChromecast to actually pass it along to the #Chromecast device.
Not so quick and dirty as the previous bodge, and there's no sanity checking for what you pass in, but since I promise to behave, it'll do.
Ok, so that works...
But it's an annoying bodge, nevertheless, would have been nice if I could just request the #PyChromecast media controller to style the subtitles from #Gnomecast rather than having to subtly alter my version of PyChromecast to get the #Chromecast to do what I want.
Still, it's a 2 hour long film, which I watched last night, so there's plenty of time to see if what I've done works.
So, after some digging, the #Chromecast API does offer the ability, in a limited way, to style subtitles, but #Pychromecast doesn't from what I can see, pass this ability on, but it does make use of it internally to set up subtitles to have an outline and background colour. So from #Gnomecast (which uses Pychromecast) there's no way to style subtitles.
So, a workaround, which I'm hoping to test in a virtualenv is to add some extra styling into the media_controller class in Pychromecast.