Beispiel #1
0
 protected static void SetStatus(IMediaStatusSession[] sessions, MediaStatusPropertyTag[] tags, object[] vals)
 {
   for (int i = 0; i < sessions.Length; i++)
   {
     try
     {
       sessions[i].MediaStatusChange(tags, vals);
     }
     catch (Exception exception)
     {
       Log.Info(
         "MCEDisplay.MCESession.SetStatus(): CAUGHT EXCEPTION setting status for session driver # {0}: {1}",
         new object[] {i, exception});
     }
   }
 }
Beispiel #2
0
 protected static IMediaStatusSession[] CreateSession()
 {
   Log.Info("MCEDisplay.MCESession.CreateSession(): creating MCESession");
   IMediaStatusSession[] sessionArray = new IMediaStatusSession[sinks.Length];
   for (int i = 0; i < sinks.Length; i++)
   {
     Log.Info("MCEDisplay.MCESession.CreateSession():    creating MCESession for sink {0} of {1}",
              new object[] {i + 1, sinks.Length});
     sessionArray[i] = sinks[i].CreateSession();
     Log.Info("MCEDisplay.MCESession.CreateSession():    CREATED MCESession for sink {0} of {1}",
              new object[] {i + 1, sinks.Length});
   }
   Log.Info("MCEDisplay.MCESession.CreateSession(): MCESession created");
   return sessionArray;
 }