My IP TV Plugin (1 Viewer)

overture

Portal Pro
January 3, 2006
79
0
Bangor
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
 

yevgenb

Portal Member
January 3, 2007
37
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
 

overture

Portal Pro
January 3, 2006
79
0
Bangor
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
 

yevgenb

Portal Member
January 3, 2007
37
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
 

overture

Portal Pro
January 3, 2006
79
0
Bangor
Home Country
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

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
 

yevgenb

Portal Member
January 3, 2007
37
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...
 

overture

Portal Pro
January 3, 2006
79
0
Bangor
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
 

Users who are viewing this thread

Top Bottom