question

LILIU-9315 avatar image
0 Votes"
LILIU-9315 asked RoyLi-MSFT edited

I want to know whether my PC supports miracast by uwp API, but I got MiracastNotSupported on every PC.

     MiracastReceiver mr;
     MiracastReceiverStatus mrs = mr.GetStatus();
     cout << "MiracastReceiverStatus " << (int)mrs.WiFiStatus() << endl


windows-uwp
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

My PC can use Miracast. I have tested it.

0 Votes 0 ·

How do you use the Miracast? Can you project to your PC from other devices wirelessly now? Could you please open the Projection settiings in the Settings? If your PC doesn't support Miracast, it will show a read note saying The device doesn't support receiving Miracast?

0 Votes 0 ·

My PC can use Miracast. I have tested it.

0 Votes 0 ·
Show more comments

@LILIU-9315 Any updates about this issue?

0 Votes 0 ·

1 Answer

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered

Hello,

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.


Thank you.


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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.