What is the mapping of "Windows.Media.Miracast.MiracastReceiverDisconnectReason" and WiFi disconnected reason code?

zev young 20 Reputation points
2023-08-01T03:11:20.03+00:00

Hi Microsoft team,

I am developing a UWP app, the function is screen share sink and able disconnect to source side. Source side is Android app.

  • The screen share function works well by using "Windows.Media.Miracast" API.
  • But I don't know what is the mapping of "Windows.Media.Miracast.MiracastReceiverDisconnectReason" and WiFi disconnected reason code.

I want to disconnect to source side with WiFi disconnected reason code is 3. I try to call MiracastReceiverConnection.Disconnect(MiracastReceiverDisconnectReason.DisconnectedByUser), but the WiFi disconnected reason code is 0.

Universal Windows Platform (UWP)
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.