[Question] Advice Wanted on Developing a Client Application for a Disabled Family Member (1 Viewer)

Omar19841

New Member
July 4, 2020
2
1
Home Country
United Kingdom United Kingdom
Country flag
Hi everyone,

I am hoping someone can help with the following.

I am based in the UK. I have a family member who has a disability. They need a simple way of watching TV offline. They could buy a set top box off the highstreet, but they are not happy with the current interfaces offered by manufacturers. I bought an Intel Nuc for them and plugged a TV tuner into it. I then tried various solutions such as Next PVR but again there were certain things that the person didn't like. They have limited eye sight and just didn't get on with the application. I came across Media Portal and MPExtended. The documentation seems to imply that MPExtended is the best option if you want to create your own client?

So far, I have got channel switching working, subtitles displaying and the stream playing fine via the JSON API. My questions however relate to the EPG.

My first question is, does MPExtended support UK Freeview channel numbers? I can see the API generates a number of channel IDs using the GetChannelsDetailed JSON API function. However, these don't match with the Freeview numbers in the UK. For example, BBC 1 HD is Freeview channel 101, but the ID for BBC 1 HD is different. Am I missing something? Or is this not supported by MPExtended? If it isn't supported, is there a way around this? The issue I have is that I can't use an online service like WebEPG to grab the EPG as the device running the software isn't always online. Are there any local files I can look at to grab the channel numbers? The goal for me is for the user to be able to type in the Freeview channel number and to switch the stream to that channel.

The second question is, is there a way of getting the TV server to scan for channels via the MPExtended API? If the family member moved house for example, they may need to rescan for regional channels. However, they are not technical enough to use the TV Server configurator. Does the API support this? If not, what's the easiest way of interfacing with the TV Server to rescan for channels?

My final question is, because the MP Extended code is dated (I believe a developer called Oxan last updated the API 6 years ago), is there a more modern solution that I should be using to interface with the server to build my own client? If the server has an API I can tap into (for example as part of Media Portal v2), that could certainly make life easier. I'm using C# .Net to program the client (I'm using Windows Forms at the moment, with the intention to use WPF later). I have tried looking at the current server/client source code, but I don't really know where to start when it comes to understanding how the server and existing client are communicating with each other. I have a decent amount of programming experience but I am by no means an expert.

Any help would be greatly appreciated! :)

Kind regards,

Omar.
 

CyberSimian

Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    does MPExtended support UK Freeview channel numbers?
    I have never used MPExtended, and I don't even know what it does :eek:, but you may be able to get what you want via a setting in "MP Config", where you can choose between:
    • Selecting a channel by index (ranges from 1 to number of channels, with no gaps)
    • Selecting a channel by logical channel number (LCN); e.g. specify 101 for "BBC1 HD".
    The "MP Config" panel is shown below; the red box identifies the setting. I don't know for certain that it will give you the result that you want, but it is worth trying:

    tv_settings_2.JPG

    is there a way of getting the TV server to scan for channels via the MPExtended API? If the family member moved house for example, they may need to rescan for regional channels.
    I suspect that you would need an application called "TvServerExtended" to do that, but as far as I know this application does not exist :(. It may be possible to enhance MPExtended to do this, but I will have to leave that to others to comment on the feasibility.

    To be honest, I think that the simplest solution is for you to visit your family member and retune the setup for him/her. Although we seem to need to perform a retune every few months in the UK, on most occasions there is little change. Typically, a few minor channels are affected, but not the major ones. So your family member might have to go without those minor channels until such time as you can visit him/her and retune the setup.

    That is about all I can help with. I hope that you and your family member can achieve a favourable outcome.

    -- from CyberSimian in the UK
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,890
    8,439
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    MPExtended get info from TVServer DB and from Mediaportal plugins DB, pack to Json and return to frontend, frontend unpack Jdon and show info to user :) this all.

    Отправлено с моего Mi 9 Lite через Tapatalk
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    To be honest, I think that the simplest solution is for you to visit your family member and retune the setup for him/her.
    Thinking about this some more, isn't there a Microsoft tool called "Remote Desktop" that allows you to connect to a remote system over the internet, and control that system as though you were sitting in front of it? If your family member has internet access, you could initiate a TV Server rescan from your own Windows computer.

    You will need Windows 10 Professional in order to use the "Remote Desktop" tool:
    How to use Remote Desktop

    -- from CyberSimian in the UK
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,890
    8,439
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    My first question is, does MPExtended support UK Freeview channel numbers?
    If in TV Server channel have UK Freeview channel numbers then MPExtended should show it as UK Freeview channel numbers ...
     

    Omar19841

    New Member
    July 4, 2020
    2
    1
    Home Country
    United Kingdom United Kingdom
    Country flag
    Thank you everyone for your responses :)

    The "MP Config" panel is shown below; the red box identifies the setting. I don't know for certain that it will give you the result that you want, but it is worth trying:

    View attachment 206211

    Many thanks for this suggestion. I have changed this setting and now MP1 is displaying the channel numbers as expected:

    Channel Numbers.PNG


    If in TV Server channel have UK Freeview channel numbers then MPExtended should show it as UK Freeview channel numbers ...

    That is what I thought. However, changing the MP Config has not changed the numbers in MPExtended, which is very odd. Here is a portion of my JSON output when calling the GetChannelsBasic:

    1594033593161.png


    And this is BBC 1 HD when calling GetChannelsDetailed:

    1594033870429.png


    Does anyone have any suggestions as to how I can get MPExtended to look for the "logical channel number"? Is there a function to access/change this? If not, are these numbers stored locally? Can I access these numbers in some way?

    If your family member has internet access, you could initiate a TV Server rescan from your own Windows computer.

    Many thanks for your suggestion. Unfortunately, I can't access the NUC over the internet (using remote desktop, TeamViewer etc), as they live in a very remote area of the UK (in the countryside) and they do not have a reliable internet connection. Travelling is also not an option unfortunately...

    I saw a thread mention the "TV control .NET remoting interface" :


    @mm1352000 and regeszter mentioned that scanning for channels could be done using the public methods from the "Controller.cs" class:

    MediaPortal/MediaPortal-1

    There is a function called "Scan" ("IChannel[] Scan(int cardId, IChannel channel);" on line 162 of the class). Am I right in thinking that this re-scans for channels? The IChannel list could also solve my Freeview channel number issue I think (if I can see the logical channel number via the IChannel result)? If so, how would I access this function in my own C# .Net WinForms app? Do I need to set something up? If so, is there a guide I could look at?

    Many thanks again for your all your help.
     

    Attachments

    • Channel Numbers.PNG
      Channel Numbers.PNG
      1.1 MB · Views: 0

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,890
    8,439
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag

    Users who are viewing this thread

    Similar threads

    I hadn't realised they are that cheap now! I'm not so sure if the issue is related to MePo or MPE now as after clearing stuff I managed to get around 3gb free space, after a day of non use im now back down to 1gb! May need to look more in depth. I had this issue a year back and put it down to Windows update, but obviously that...
    I hadn't realised they are that cheap now! I'm not so sure if the issue is related to MePo or MPE now as after clearing stuff I...
    Hi. Am a long time user of MP and have a nice happy running setup on my server and client HTPC. I have the timeshift on a SSD and...
    Replies
    2
    Views
    428
    Hi Guys, A long time since I last posted. I have just changed over to MP2 after using MP1 since 2008 and on tuning the Terrestrial TV channels I could only get about half the current number of channels from my transmitter, Winter Hill. So I checked on the forum and found the latest Tuning Parameters .XML file (here), and copied and...
    Hi Guys, A long time since I last posted. I have just changed over to MP2 after using MP1 since 2008 and on tuning the Terrestrial...
    Hi Guys, A long time since I last posted. I have just changed over to MP2 after using MP1 since 2008 and on tuning the Terrestrial...
    Replies
    0
    Views
    415
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system hdd and decided it was time for a clean install anyway. Other hardware (C2D, 8 Gb ram, no tv cards - IP only) unchanged. Was running an earlier Win10 version with MP 1.24 which had been updated for years...
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
    Replies
    0
    Views
    326
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short news bulletin), and DVRs with appropriate code can use this information to record both parts when you schedule the first part to record. I had always assumed that this capability was not implemented in "TV...
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short...
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short...
    Replies
    0
    Views
    335
    Not been on the forum for a while, good news I have installed 2.3.1 and can confirm everything is working as expected. On a wider front for info I have now set the TV recording to store by channel and I just add childrens channels folders to my sons profile. I now have a very happy 5 year old who can use media portal on his PC...
    Not been on the forum for a while, good news I have installed 2.3.1 and can confirm everything is working as expected. On a wider...
    Been running great for a good while now but the time has come to add a client to my sons bedroom (he is 5). Installed client sets...
    Replies
    10
    Views
    975
    Top Bottom