示例#1
0
 public void OnVideoEnded(g_Player.MediaType type, string s)
 {
     if (DebugMode)
     {
         Logger.Debug("Action is End");
     }
     SetLevelForPlayback(type.ToString(), "End");
 }
 internal void OnPlayBackStarted(g_Player.MediaType type, string filename)
 {
     try
     {
         if ((Utils.SpectrumEnabled || Utils.SpectrumVUMeterEnabled) &&
             (type == g_Player.MediaType.Music || type == g_Player.MediaType.Radio || MediaPortal.Util.Utils.IsLastFMStream(filename)))
         {
             logger.Debug("OnPlayBackStarted: MediaType: " + type.ToString() + " LastFM: " + MediaPortal.Util.Utils.IsLastFMStream(filename).ToString() + " - " + filename);
             PlaybackInit(true);
         }
         else // if (Utils.SpectrumDebug)
         {
             logger.Debug("OnPlayBackStarted: Skiped due " + Utils.Check(Utils.SpectrumEnabled) + " Spectrum, " + Utils.Check(Utils.SpectrumVUMeterEnabled) + "VUMeter, MediaType: " + type.ToString() + " LastFM: " + MediaPortal.Util.Utils.IsLastFMStream(filename).ToString() + " - " + filename);
         }
     }
     catch (Exception ex)
     {
         logger.Error("OnPlayBackStarted: " + ex.ToString());
     }
 }
 internal void OnPlayBackEnded(g_Player.MediaType type, string filename)
 {
     logger.Debug("OnPlayBackEnded: MediaType: " + type.ToString() + " LastFM: " + MediaPortal.Util.Utils.IsLastFMStream(filename).ToString() + " - " + filename);
     PlaybackDone();
 }
 private void OnPlayBackStopped(g_Player.MediaType type, int stoptime, string filename)
 {
     logger.Debug("OnPlayBackStopped: MediaType: " + type.ToString() + " LastFM: " + MediaPortal.Util.Utils.IsLastFMStream(filename).ToString() + " - " + filename);
     PlaybackDone();
 }