While we're throwing ideas, someone please implement this:
An as simple as possible Android app that lists any discovered Chromecast devices and when you tap on one it attempts to cast your screen to that one.
Why? Because screen casting isn't an AOSP feature. It is really difficult to get it to work on GrapheneOS if it works at all.
But VLC can stream video to Chromecast on AOSP without issues.
So my thought is: Take a look at the VLC Android source. It's mostly a wrapper using the VLC bindings as an API. Look at how it uses VLC to discover Chromecasts[1] and how it uses them as output[2].
Then somehow pipe the createScreenCaptureIntent API into it.
An as simple as possible Android app that lists any discovered Chromecast devices and when you tap on one it attempts to cast your screen to that one.
Why? Because screen casting isn't an AOSP feature. It is really difficult to get it to work on GrapheneOS if it works at all.
But VLC can stream video to Chromecast on AOSP without issues.
So my thought is: Take a look at the VLC Android source. It's mostly a wrapper using the VLC bindings as an API. Look at how it uses VLC to discover Chromecasts[1] and how it uses them as output[2].
Then somehow pipe the createScreenCaptureIntent API into it.
GrapheneOS users will be thankful.
[1] https://code.videolan.org/videolan/vlc-android/-/blob/master...
[2] https://code.videolan.org/videolan/vlc-android/-/blob/c773c2...