My IP TV Plugin | Page 5

Discussion in 'MediaPortal 1 Plugins' started by overture, December 6, 2006.

  1. overture

    overture Portal Pro

    Joined:
    January 3, 2006
    Messages:
    79
    Likes Received:
    0
    Occupation:
    Software Developer
    Location:
    Bangor
    Ratings:
    +0 / 0
    Home Country:
    Hi moiristo!

    I'm working on this when I get the time. So far it's coming along well. I have got a good backbone in place which allows mini IPTV plugins to be plugged into this host plugin via an interface which looks like the following:-

    public interface IMiniIPTVPlugin
    {
    /// <summary>
    /// Should return a multi-dimensional array return in this order "(string
    /// channelname, string channelDescription, string genre, string language, string
    /// country, string streamURL)"
    /// </summary>
    /// <returns>A multi-dimensional array</returns>
    string[,] IPTVChannel();
    string Author();
    Form SetupForm();



    }

    The interface is my biggest worry. If I get it wrong then it will cause a lot of bother down the line. The IPTVChannel method when implemented should return a multi-dimensional array which contains the following:

    -Channel Name
    -Channel Description
    -Genre
    -Language
    -Country
    -Stream URL

    Can you think of anything else?

    Phil
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. yevgenb

    yevgenb Portal Member

    Joined:
    January 3, 2007
    Messages:
    37
    Likes Received:
    0
    Ratings:
    +0 / 0
    Hi guys,

    I've been using my own plugin for watching of russian IPTV channels and would be happy to share some knowledge too.
    My concerns are:
    1) Some sites (like the one I'm using - www.bestrussiantv.com) have it's own sets of cookies used for logging to the site. I think we might need hook to mini plugin for custom login procedure.
    2) Are you guys planning to implement EPG loading? If so it should be probably done in mini-plugin also. Than we need additional method to get EPG for let's say one channel at a time.

    So here is my suggested additions for API:

    ....
    DoLogin();
    string[,] GetChannelEPG(String programID);
    ....


    Best regards,
    Eugene
     
  4. overture

    overture Portal Pro

    Joined:
    January 3, 2006
    Messages:
    79
    Likes Received:
    0
    Occupation:
    Software Developer
    Location:
    Bangor
    Ratings:
    +0 / 0
    Home Country:
    Hi Eugene,

    I had included the 'Form SetupForm();' method in the interface for anything like custom logins and so on. This would be similar to the current mediaportal plugins setup.

    Regarding the EPG - I really would love to integrate this but I have no idea how to do it.

    You have suggested to include a method in the interface:-

    string[,] GetChannelEPG(String programID);

    However, would it not be better to implement the GetChannelEPG in the IPTV Host Plugin rather than using an interface to get different implementations from each mini plugin?...or is EPG retrieval different for each site? (Sorry, I know nothing about EPG's!)

    Thanks,

    Phil
     
  5. yevgenb

    yevgenb Portal Member

    Joined:
    January 3, 2007
    Messages:
    37
    Likes Received:
    0
    Ratings:
    +0 / 0
    Unfortunatelly the way of retreiving EPG can be different for each site if possible at all. That's why I suggested to get it from mini-plugin. Another story is how to show EPG/channels in host plugin. That is might be similar to the way how TV Plugin does it.

    Regards,
    Eugene
     
  6. barkerch

    barkerch Portal Member

    Joined:
    January 29, 2007
    Messages:
    10
    Likes Received:
    0
    Occupation:
    Telco IT - Digital Content Management, Broadband V
    Location:
    Wellington
    Ratings:
    +0 / 0
    Home Country:
    New Zealand New Zealand
  7. overture

    overture Portal Pro

    Joined:
    January 3, 2006
    Messages:
    79
    Likes Received:
    0
    Occupation:
    Software Developer
    Location:
    Bangor
    Ratings:
    +0 / 0
    Home Country:
    Eugene,

    Is there a standard set of parameters which should be passed using the interface (string[,] GetChannelEPG(String programID);)? How do you suggest the data should be structured?

    Phil
     
  8. yevgenb

    yevgenb Portal Member

    Joined:
    January 3, 2007
    Messages:
    37
    Likes Received:
    0
    Ratings:
    +0 / 0
    First of all I think we need some sort of channel ID to pass around ( string or int or whatever).
    Than IF main plugin will take care of the EPG showing mini plugin can pass array of times/show names:

    class Show
    {
    Date time;
    string showName;
    string showDescription;
    ...... // some other metadata we can think of
    };

    Mini plugin Api:
    Show[] GetProgram(string channelID, Date startDate, Date endDate);

    The main plugin has to catch mini plugin exceptions here and show the error somehow .

    Think if I missed something...
     
  9. overture

    overture Portal Pro

    Joined:
    January 3, 2006
    Messages:
    79
    Likes Received:
    0
    Occupation:
    Software Developer
    Location:
    Bangor
    Ratings:
    +0 / 0
    Home Country:
    yevgenb,

    If I upload the plugin source code to the plugin SVN would you be able to implement this structure? If you dont have time don't worry about it.

    Phil
     
  10. yevgenb

    yevgenb Portal Member

    Joined:
    January 3, 2007
    Messages:
    37
    Likes Received:
    0
    Ratings:
    +0 / 0
    This week I'll be busy but on weekend I think I'll have time.
     
  11. overture

    overture Portal Pro

    Joined:
    January 3, 2006
    Messages:
    79
    Likes Received:
    0
    Occupation:
    Software Developer
    Location:
    Bangor
    Ratings:
    +0 / 0
    Home Country:
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!