Example #1
0
        private void Image_ImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
        {
            Image  img           = sender as Image;
            string fallbackImage = "ms-appx:///Assets/StoreLogo.png";

            img.Source = new BitmapImage(new Uri(fallbackImage));
        }
 /// <summary>
 /// Media Failed event handler for self video.
 /// Invoked when an error occurs in self media source.
 /// </summary>
 /// <param name="sender">The object where the handler is attached.</param>
 /// <param name="e">Details about the exception routed event.</param>
 private void SelfVideo_MediaFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
     if (ViewModel != null)
     {
         ViewModel.AdapterViewModel.SelfVideo_MediaFailed(sender, e);
     }
 }
Example #3
0
        /// <summary>
        /// Media Failed event handler for remote/peer video.
        /// Invoked when an error occurs in peer media source.
        /// </summary>
        /// <param name="sender">The object where the handler is attached.</param>
        /// <param name="e">Details about the exception routed event.</param>
        private void PeerVideo_MediaFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
        {
//            if (_mainViewModel != null)
//            {
//                _mainViewModel.PeerVideo_MediaFailed(sender, e);
//            }
        }
Example #4
0
        private void OnImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
        {
            var image = (Image)sender;

            image.GetReactContext()
            .GetNativeModule <UIManagerModule>()
            .EventDispatcher
            .DispatchEvent(new ImageFailedEvent(image.GetTag()));
        }
        private static async void Image_ImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
        {
            Debug.WriteLine(e.ErrorMessage);

            try
            {
                BitmapImage image = (BitmapImage)sender;

                Uri pathUri = new Uri(image.UriSource.LocalPath);
                var file    = await StorageTask.Instance.GetFileFromPath(pathUri);

                using (var fileStream = await StorageTask.Instance.OpenFileStream(file, Windows.Storage.FileAccessMode.Read))
                {
                    image.SetSource(fileStream);
                }
            }
            catch (Exception) { }
        }
Example #6
0
 void element_MediaFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine("Could not play: " + sound.link);
     donecb();
 }
 private void MediaElement_MediaFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
     semaphore.Release();
 }
Example #8
0
 private void IconBitmapImage_ImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
     throw new NotImplementedException();
 }
        private void BitmapImage_ImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
        {
            Processing = false;

            Notify("Thumbnail");
        }
 private void OnDriverImageFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
 }
Example #11
0
 private void Player_MediaFailed(object sender, Windows.UI.Xaml.ExceptionRoutedEventArgs e)
 {
     RaiseStateChanged();
     mediaProducer.Signals.OnPlaybackError(Playlist.CurrentItemIndex, e.ErrorMessage, "");
 }