MiracastReceiver mr; MiracastReceiverStatus mrs = mr.GetStatus(); cout << "MiracastReceiverStatus " << (int)mrs.WiFiStatus() << endl
Welcome to Microsoft Q&A!
It seems that you are trying to casting your screen to other devices instead of receiving the incoming Miracast. As @Viorel-1 said, the MiracastReceiver Class is not suitable for your scenario because it could only receive incoming Miracast. If you just wants to enumerate available screens to project to a view of your app, you might need to take a look at the ProjectionManager Class and the Projection sample. But if you want to cast video or other medias to other screens, you could check the Advanced casting sample.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
13 people are following this question.