I am working on casting application. I am able to cast local videos from my app on TV using chromecast device.
Now I want to cast(mirror) complete android phone on the TV. I know Android provides this as a default feature by using Cast feature in quick Settings where user has to explicitly connect to a Chrome Cast device available.
How can I do the same from my application? I have tried using MediaProjection API to capture screen and save it.
Can anybody show me direction how to do that?