How to generate user defined PIN in a Miracast Receiver application in Windows 10 using Windows.Media.Miracast namespace ?

Himanshu Rohilla 0 Reputation points
2024-02-29T12:38:41.77+00:00

Hi All, I have created an application using the Miracast namespace that acts as a Miracast receiver. I have made it as per my requirements except for one thing and it's like this - Whenever any Miracast-supported Android device or Windows PC or Sender connects to the Miracast receiver application, this receiver application generates a new PIN every time for authorization using the MiracastReceiverConnectionCreatedEventArgs class. But I require that I write the logic of generating this PIN in my Miracast Receiver application and authorize the receiver app Sender through the same PIN. The MiracastReverseSectionCreatedEventArgs class only has the function to get the PIN, not to set it. Can I somehow set a PIN to complete the authorization process? Thanks in advance to everyone. :)

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,874 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,209 questions
{count} votes