Ejemplo n.º 1
0
 void MediaPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     foreach (var ctrl in ControlSets)
     {
         try {
             ctrl.ErrorOccured(e.ErrorException);
         } catch (Exception ex) { drop(ex); }
     }
 }
        void mediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
        {
            SmoothStreamingEvent mediaFailedEvent = new SmoothStreamingEvent();

            mediaFailedEvent.EventType = EventType.MediaFailed;
            mediaFailedEvent.Data1     = e.ErrorMessage;
            mediaFailedEvent.Data2     = GetUrlWithoutQueryString(mediaElement.SmoothStreamingSource);
            mediaFailedEvent.Data3     = mediaElement.Position.TotalSeconds.ToString(CultureInfo.CurrentCulture);
            Enqueue(mediaFailedEvent);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the SmoothStreamingErrorOccurred event. Logs the exception.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event args instance containg the exception data.</param>
 private void MediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     if (e.ErrorException != null)
     {
         this.logger.Log("PlayerControl", e.ErrorException);
     }
     else
     {
         this.logger.Log("PlayerControl", new Exception(String.Format(CultureInfo.InvariantCulture, "{0}:{1}", e.ErrorCode, e.ErrorMessage)));
     }
 }
 private void CoreSmoothStreamingMediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     // log error
     string message = String.Format("SmoothStreamingErrorOccurred - code: {0}, source: {1}, message: {2}",
         e.ErrorCode, SmoothStreamingSource.AbsoluteUri, e.ErrorMessage);
     Logger.Log(new PlayerLog(PlayerLogType.SmoothStreamingError) { Sender = this, Message = message });
 }
 void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     if (e.ErrorMessage != null && e.ErrorMessage.StartsWith("Failed to download manifest"))
     {
         OutPut.Text = "Source stream or file could not be found or access was denied.";
     }
     else
     {
         OutPut.Text = "Streaming Error: " + e.ErrorCode;
     }
     reset();
 }
 void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     if(e.ErrorMessage!=null && e.ErrorMessage.StartsWith("Failed to download"))
     {
         reportError("Source stream or file could not be found or access was denied.");
     }
     else
     {
         reportError("Streaming Error: " + e.ErrorMessage);
     }
 }
 void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     OutPut.Text = "Streaming Error: " + e.ErrorMessage;
     reset();
 }
Ejemplo n.º 8
0
        void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
        {
            reportError("Streaming Error: " + e.ErrorMessage);

        }
        private void MediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
        {
            var extendedProperties = new Dictionary<string, object>(1)
                                         {
                                             {"ErrorCode", e.ErrorCode}
                                         };

            SendLogEntry(KnownLogEntryTypes.SmoothStreamingErrorOccurred, LogLevel.Error, e.ErrorMessage, extendedProperties: extendedProperties);

            var err = e.ErrorException ?? new SmoothStreamingMediaPluginException(e.ErrorMessage);
            AdaptiveStreamingErrorOccurred.IfNotNull(i => i(this, err));
        }
Ejemplo n.º 10
0
 void MediaPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     foreach (var ctrl in ControlSets) {
         try {
             ctrl.ErrorOccured(e.ErrorException);
         } catch (Exception ex) { drop(ex); }
     }
 }
Ejemplo n.º 11
0
 void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     OutPut.Text = "Streaming Error: " + e.ErrorMessage;
     reset();
 }
 public void MediaError(SmoothStreamingErrorEventArgs e)
 {
     DialogFacade.Alert(string.Format(Resources.PlayerResources.MediaError, e.ErrorCode, e.ErrorMessage));
     Stop();
 }
Ejemplo n.º 13
0
 private void mediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     Model.MediaError(e);
 }
 void mediaElement_SmoothStreamingErrorOccurred(object sender, SmoothStreamingErrorEventArgs e)
 {
     SmoothStreamingEvent mediaFailedEvent = new SmoothStreamingEvent();
     mediaFailedEvent.EventType = EventType.MediaFailed;
     mediaFailedEvent.Data1 = e.ErrorMessage;
     mediaFailedEvent.Data2 = GetUrlWithoutQueryString(mediaElement.SmoothStreamingSource);
     mediaFailedEvent.Data3 = mediaElement.Position.TotalSeconds.ToString(CultureInfo.CurrentCulture);
     Enqueue(mediaFailedEvent);
 }