If you use kodi as your media software, either via a "kodi only" OS like libreelec or just opening it on any old linux install, you can use the kodi remote Yatze to cast video to Kodi. I use it all the time with youtube.
Just hit share on the video on your phone, select the Yatze option and it will show a list of your media centers to cast to.