Exemplo n.º 1
0
 /// <summary>
 /// Sets a callback handler
 /// </summary>
 /// <param name="CallbackHandler"></param>
 /// <returns></returns>
 public bool SetCiMenuHandler(TvLibrary.Interfaces.ICiMenuCallbacks CallbackHandler)
 {
   TvLibrary.Log.Log.Debug("VC: SetCiMenuHandler");
   try
   {
     if (User.CardId < 0 || !IsOwner())
     {
       return false;
     }
     TvLibrary.Log.Log.Debug("VC: SetCiMenuHandler card: {0}, {1}", User.CardId, CallbackHandler);
     return RemoteControl.Instance.SetCiMenuHandler(User.CardId, CallbackHandler);
   }
   catch (Exception Ex)
   {
     TvLibrary.Log.Log.Error("Exception: {0}", Ex.ToString());
     HandleFailure();
   }
   return false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Instructs the cam/ci module to use hardware filter and only send the pids listed in pids to the pc
 /// </summary>
 /// <param name="subChannel">The sub channel id</param>
 /// <param name="channel">The current tv/radio channel.</param>
 /// <param name="HwPids">The pids.</param>
 /// <remarks>when the pids array is empty, pid filtering is disabled and all pids are received</remarks>
 public void SendPids(int subChannel, TvLibrary.Channels.DVBBaseChannel channel, List<ushort> HwPids) {}