What is the mapping of "Windows.Media.Miracast.MiracastReceiverDisconnectReason" and WiFi disconnected reason code?
zev young
20
Reputation points
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.
Sign in to answer