问题
I am looking to build a sample app that has the capability to just cast my android screen on to the TV screen. Most of the sample applications(including googles official sample cast applications) I see have the capability to cast audio and video as well. I know their is google's chromecast app which does the same(screen mirroring), but I need to integrate same functionality in my app. So any kind of code example or tutorial that point me in the direction of screen mirroring using cast SDK will be much appreciated.
回答1:
You cannot programmatically initiate mirroring your phone screen outside of your app; you can only use the Remote Display APIs to mirror a view from within your own app; read about the Remote Display apis.
来源:https://stackoverflow.com/questions/41499247/screen-mirrorring-using-chrome-cast-example-code-or-tutorial