I'm just not getting any results part from card/device name/ids, no card status's (1 Viewer)

RossMcivor

New Member
June 22, 2018
2
0
Wales, UK
United Kingdom United Kingdom
Hi, I'm moving from delphiprogramming to develp a application in visual studio c#, and i got this

just a button and a textbox..


I'm getting the device name, but no recording staus, while its recording, ive tryed over properies but it returns nothing, can someone help me get over my first hurdle please :)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TvControl;          // include the tvserver remote control interfaces
using TvLibrary.Channels; // include tv-channel types
using TvDatabase;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
         
        }
         


         
        private void button1_Click(object sender, EventArgs e)
        {
             RemoteControl.HostName = "mars";
            int cardCount = RemoteControl.Instance.Cards;
            for (int i = 0; i < cardCount; ++i)
            {
                int cardId = RemoteControl.Instance.CardId(i);
                User user = new User();
                user.CardId = cardId;
              
                VirtualCard card = new VirtualCard(user, RemoteControl.HostName);
            
                textBox1.AppendText("Type: " + card.Name + " Recording: " + card.IsRecording  + "\r\n");
            }
        }
    }
}
 

Edalex

Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,923
    1,233
    Saratov
    Russian Federation Russian Federation
    Country flag
    Hey.
    When I want to get info from tv server I use TVBusinessLayer methods.
    Also sometimes I need to set cofing with some metthod I don't remember
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    D Trying to get mp 1.24 to recognise Schedules Direct. General Support 4
    D Getting Started General Support 30
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    ratata [solved] Can't get two virtual IPTV cards to work side by side... General Support 6
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    D Please help with getting Schedules Direct to work Newcomers Forum 10
    emphatic How to get the right data for War Of The Worlds? My TVSeries 1
    T I cannot get a basic media import-what is the best configuration? General 10
    M Guide mapping schedules direct, tvguide, epg buddy How to get correct entry to the correct channel? Electronic Program Guide 0
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    Glith Audio out of sync after pause. Rewind 15sec gets it into sync again. MediaPortal 1 Talk 0
    D Cannot get a fully populated UK Freesat EPG (DVB-S) General 14
    R How to I get started with MP2? General 1
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    K [solved] Cannot get EPG populating in the UK General 7
    T Get this error message on attempted re-install...LOGS inc. General Support 4
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    N [Finished] [MP2-791] Radio recordings do not get imported into Recordings listing MediaPortal 2 25
    N [solved] How do you get things into the Series or Movies listing General 5
    N How do I get the menu in the WebRadio plugin WMC Skin 1
    W Need help getting my TV guide working again General Support 1
    M [solved] Can't get TV option on installation Installation, configuration support 10
    hounddog How to get My Films working in MP 1.20 My Films 5
    peque MP 1.20: Refresh rate changer doesn't get FPS of my video media... General Support 1

    Similar threads

    Top Bottom