private void Template_Playing(object sender, API.PlayingEventArgs e)
 {
     try
     {
         CheckExecuteOnGUIThread(() => CheckParameters());
     }
     catch (Exception ex) //Always catch exceptions in template calls. If not the template might restart in a new process.
     {
         m_Template.Debug(API.DebugLevel.High, API.DebugCategory.Error, "Failed to play " + Environment.NewLine + ex.Message);
     }
 }
Beispiel #2
0
 private void Template_Playing(object sender, API.PlayingEventArgs e)
 {
     try
     {
         StartPlay(e.Transition, e.Duration, e.Tuning);
     }
     catch (Exception ex) //Always catch exceptions in template calls. If not the template might restart in a new process.
     {
         m_Template.Debug(API.DebugLevel.High, API.DebugCategory.Error, "Failed to play" + Environment.NewLine + ex.ToString());
         m_Template.MediaEnded();
     }
 }