Is there any way to hide pairing message box during miracast device using 'RequestStartCasting'?

123 Views Asked by At
  1. Connected Miracast device in display monitor
  2. Create connection with Miracast device using 'CastingDevice.CreateCastingConnection()'
  3. Casting request with with Miracast device using 'castDeviceConnection.RequestStartCastingAsync()'

Device paring message box showing after 'RequestStartCastingAsync()' call. Is there any way to hide these message box??

sample code:

            //Create a new casting connection to the device that's been selected
             castDeviceConnection = SelectedCastingDevice.CreateCastingConnection();

            //Register for events
            castDeviceConnection.ErrorOccurred += Connection_ErrorOccurred;
            castDeviceConnection.StateChanged  += Connection_StateChanged;

            //casting test image
            Image castImage = new Image();
            castImage.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage
                                                        (new Uri(@"ms-appx:////Assets/test.jpg"));
            CastingConnectionErrorStatus status = CastingConnectionErrorStatus.Unknown;

            // Request for casting
            castDeviceConnection.RequestStartCastingAsync( castImage.GetAsCastingSource());
0

There are 0 best solutions below