- Connected Miracast device in display monitor
- Create connection with Miracast device using 'CastingDevice.CreateCastingConnection()'
- 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());