2

I want to add an in-app screen mirroring option that would cast only the app's surface view/ layout/screen to cast-enable TV(Android TV). I tried different approaches but couldn't reach any concrete solutions. There are many questions for the same scenario here but all point to Remote display API which is deprecated

Here are my findings

  1. Initially, I played with the Google Home app that provides a complete screen mirroring option but looks like those APIs are private and not open for us developers.
  2. The Google cast SDK provides only media casting [Audio/Video], which is unsuitable for my use case. As per the documentation, I would need to create a receiver app to support media sharing between sender and TV.
  3. Leon here says that cast remote display API can be used but it is deprecated by Android
  4. Tried this fantastic sample app which used to work earlier but now has stopped working

Can anyone guide me on how can I get it done?

References

hardik9850
  • 581
  • 1
  • 9
  • 26

0 Answers0