Пример #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (!extPlayer.IsRunning())
            {
                serverIntf.StopTimeShifting();
            }
            ReceptionDetails recDetails = serverIntf.GetReceptionDetails();

            if (recDetails == null)
            {
                SetDisconected();
                return;
            }
            prLevel.Value   = recDetails.signalLevel;
            prQuality.Value = recDetails.signalQuality;
            List <StreamingStatus> statusList = serverIntf.GetStreamingStatus();

            if (statusList == null)
            {
                SetDisconected();
                return;
            }
            lvStatus.Items.Clear();
            foreach (StreamingStatus sstate in statusList)
            {
                ListViewItem item = lvStatus.Items.Add(sstate.cardId.ToString());
                item.SubItems.Add(sstate.cardName);
                item.SubItems.Add(sstate.cardType);
                item.SubItems.Add(sstate.status);
                item.SubItems.Add(sstate.channelName);
                item.SubItems.Add(sstate.userName);
            }
            lvStatus.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
        }
        public ReceptionDetails GetReceptionDetails()
        {
            VirtualCard vcard;

            try
            {
                vcard = new VirtualCard(me, RemoteControl.HostName);
            }
            catch (Exception ex)
            {
                lastException = ex;
                return(null);
            }
            ReceptionDetails details = new ReceptionDetails();

            details.signalLevel   = vcard.SignalLevel;
            details.signalQuality = vcard.SignalQuality;
            return(details);
        }
Пример #3
0
 public ReceptionDetails GetReceptionDetails()
 {
     VirtualCard vcard;
     try
     {
         vcard = new VirtualCard(me, RemoteControl.HostName);
     }
     catch (Exception ex)
     {
         lastException = ex;
         Console.WriteLine(ex.ToString());
         Log.Error("TVServerXBMC: " + ex.ToString());
         return null;
     }
     ReceptionDetails details = new ReceptionDetails();
     details.signalLevel = vcard.SignalLevel;
     details.signalQuality = vcard.SignalQuality;
     return details;
 }
 public ReceptionDetails GetReceptionDetails()
 {
   VirtualCard vcard;
   try
   {
     vcard = new VirtualCard(me, RemoteControl.HostName);
   }
   catch (Exception ex)
   {
     lastException = ex;
     return null;
   }
   ReceptionDetails details = new ReceptionDetails();
   details.signalLevel = vcard.SignalLevel;
   details.signalQuality = vcard.SignalQuality;
   return details;
 }