I recently found out Jellyfin supports livestreams so I've been using it to "cast" my screen to the TV (simplescreenrecorder -> nginx's rtmp server -> jellyfin webpage). Theres a few seconds of latency I can't get rid of but ime more reliable than chromecast / the built-in device discovery.