MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Community Skins and Plugins » MediaPortal Plugins


View Poll Results: Good idea?
Yes 23 95.83%
No 1 4.17%
Voters: 24. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
Old 2005-11-03, 19:44   #1 (permalink)
Portal Member
 
Join Date: Nov 2004
Location: Groningen, Netherlands
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts


Default Mediaportal Plugin Installer

I'm in the process of trying to learn c# and got the idea of creating a plugin/app for MP which can install plugins. I've got the idea from Thunderbird/Firefox plugins, and I think that the same way of installing plugins could make it easier for people to add content and functionality to MP. Like the .xpi files of mozilla, MP would use .mpi files.

So, is this a good idea? Would you publish your plugins in this way? If nobody would, it would be just a waste of time.

I've got a little demo here:
http://rapidshare.de/files/7143133/M...l_app.zip.html

There's an .exe and a .mpi file. If you run it you can (after a preview) add the club977 internet radio station to your database. The paths are hardcoded (for now), so it will work if MP is installed in de right dir. There are also no checks whether info already exists (yet) or other safeguards, and a idnumber is hard coded, so if you decide to hit the "Install" button it might be wise to backup your radio database (not to forget that I still very much suck at c# ). I've hadn’t had any trouble though.
TheVideoViking is offline   Reply With Quote
Old 2005-11-03, 20:43   #2 (permalink)
Retired Team Member
 
mzemina's Avatar
 
Join Date: Feb 2005
Location: Tulsa, OK
Posts: 2,064
Thanks: 43
Thanked 13 Times in 13 Posts

Country:


Default

This should be a GREAT idea for noobies.

I would hope (however) that you wouldn't be opposed to adding error checking (because this would be used for new people or people without much PC experience), maybe a backup (as you had talked about, in case the user gets it totally messed-up), and then some user configurable items (like the ID number not being hardcoded and the install path) as you are learning and making this tool to be even better?

Mike
mzemina is offline   Reply With Quote
Old 2005-11-03, 21:16   #3 (permalink)
Portal Member
 
Join Date: Nov 2004
Location: Groningen, Netherlands
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts


Default

If I'll continue, all the hardcoded stuff will go and error checking will be added. The only reason why the sortcommings are there is because I wanted to see if I could make this with keeping the code understandable (for myself). So, all features you might aspect in a program to help people not make errors and give a freedom of choice will be added then.
TheVideoViking is offline   Reply With Quote
Old 2005-11-03, 21:34   #4 (permalink)
Retired Team Member
 
mzemina's Avatar
 
Join Date: Feb 2005
Location: Tulsa, OK
Posts: 2,064
Thanks: 43
Thanked 13 Times in 13 Posts

Country:


Default

Makes sense and what I was expecting.

Mike
mzemina is offline   Reply With Quote
Old 2005-11-03, 23:19   #5 (permalink)
Retired Team Member
 
tomtom21000's Avatar
 
Join Date: Apr 2004
Location: Germany
Posts: 1,111
Thanks: 23
Thanked 14 Times in 14 Posts

My System

Default

I think it is an excellent idea.

For now, most plugins are delivered in the basic package. With dsl you do not really care if mp is a 30 mb package or 40 mb.

this is the easiest way to ensure that the plugin works with new releases and with all skins.

but the number of plugins grows.

the new user might not even realize about all the suberb plugins, just because they are not activated in the standard setup. Don´t think you are asked for which plugins you would like to activate.

----------------------------------------------------

So, some things for your design:

1) how can you assure that only plugins, working with the release version of the user can be installed?
options:
# plugin is not updated/compiled against the latest version and does not work with latest version
# as before, but it still works
# plugin is for latest mp version, but user still uses an older version

a version number had to cover all options

2) how can you assure, that the plugin supports all standard skins?
2a) how can you assure, that a plugin can be used with a skin not in the standard package - this is a general potential problem

3) how could you avoid, that the strings.xml is overwritten. Imagin user installs plugin A and plugin B. With the strings.xml that comes with plugin B he will loose the strings of plugin A. How would you solve this for the available foreign languages?

4) If you manage all this, I think about a plugin description in MP + screenshot + featurelist + install yes/no would be absolutely cool.

I know 1)-4) problems already exist the way plugins are handled now. But I think it is harder to code this than a forum solution.

mmmh. sounds a bit negative, but it is not ment this way. I really like your idea.

tomtom
__________________
Click the image to open in full size.
tomtom21000 is offline   Reply With Quote
Old 2005-11-04, 03:20   #6 (permalink)
Retired Team Member
 
mzemina's Avatar
 
Join Date: Feb 2005
Location: Tulsa, OK
Posts: 2,064
Thanks: 43
Thanked 13 Times in 13 Posts

Country:


Default

Quote:
Originally Posted by tomtom21000
...I think about a plugin description in MP + screenshot + featurelist...
tomtom - I wish we had the website organized in the same fashion. If we had that, then maybe (I did say maybe) there wouldn't be as many questions. Nah - nevermind, there will always be questions!

Mike
mzemina is offline   Reply With Quote
Old 2005-11-04, 11:16   #7 (permalink)
Portal Member
 
Join Date: Nov 2004
Location: Groningen, Netherlands
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by tomtom21000
1) how can you assure that only plugins, working with the release version of the user can be installed?
options:
# plugin is not updated/compiled against the latest version and does not work with latest version
# as before, but it still works
# plugin is for latest mp version, but user still uses an older version

a version number had to cover all options

2) how can you assure, that the plugin supports all standard skins?
2a) how can you assure, that a plugin can be used with a skin not in the standard package - this is a general potential problem

3) how could you avoid, that the strings.xml is overwritten. Imagine user installs plugin A and plugin B. With the strings.xml that comes with plugin A he will loose the strings of plugin A. How would you solve this for the available foreign languages?
To some of these problems I don't have a solution yet, and to some probably will never have a solution. With 1). Like it is with the mozilla-plugins, some you can't get installed because the version is outdated although it will work if you change these numbers manually. It would be up to the programmer to maintain this info, and knowing how many people drop projects half-way through that could be a problem... This will probably never be perfect as long as we have a continuously growing MP. Once the steps get bigger between releases (like going from MP 1 to MP 2) the problem should diminish

2) Don't know. I would say it is up to the developer of the plugin, but maybe we could come up with a solution. Just like with 3) like you say yourself, the problems are there now. I think that the best way to solve them is through a central tool. From what I know now (could be wrong though), I don't think it is very hard to add info to an XML with a program. Anyway, I will at least add an supported skin and language to the preview for plugins using this info. But is like mzemina says, there will always be questions.

Quote:
Originally Posted by tomtom21000
mmmh. sounds a bit negative
Not at all. This is way I started this topic. I really want comments on thing I didn't think about so I can make a good decision on putting my time in this and solve the issues brought up. It is highly appreciated.
And besides, you used the word
Quote:
Originally Posted by tomtom21000
excellent
TheVideoViking is offline   Reply With Quote
Old 2005-11-04, 12:03   #8 (permalink)
Portal Member
 
Smirnuff's Avatar
 
Join Date: Dec 2004
Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 3 Times in 1 Post

My System

Default

This is areally good idea and the end result would make a very useful addition to MP.

TVV if you run into any implementation problems please use this thread to seek assistance and we'll do our best to help you solve them.
Smirnuff is offline   Reply With Quote
Old 2005-11-06, 14:46   #9 (permalink)
Portal Member
 
Join Date: Nov 2004
Location: Groningen, Netherlands
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by Smirnuff
TVV if you run into any implementation problems please use this thread to seek assistance and we'll do our best to help you solve them.
Thanks. I will.
TheVideoViking is offline   Reply With Quote
Old 2005-11-06, 15:47   #10 (permalink)
Retired Team Member
 
tomtom21000's Avatar
 
Join Date: Apr 2004
Location: Germany
Posts: 1,111
Thanks: 23
Thanked 14 Times in 14 Posts

My System

Default

ou can think about meedio as you want, but the add-in system is a cool feature:
http://www.meedio.com/maid/thelist.php?ptype=module

OK, here is another thing to think of: Is it possible to let the user also remove a plugin. After downloading and playing around with 6 plugins the user decides, that 2 of them do not suit his needs. There has to be a way to get rid of them easily.
A work-around might be, to make them unvisible via disabling them in the home setup.

Usability is what your idea is about. So, users with low pc skills should be able to use it with ease.

Seems to be a hard task. Maybe start simple and let the thing grow?

tomtom
__________________
Click the image to open in full size.
tomtom21000 is offline   Reply With Quote
Reply

Bookmarks

Tags
installer, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTV@UT Plugin moiristo MediaPortal Plugins 116 2008-10-06 22:32
Music, Radio and Video will not play Amberman Codecs, External Players 1 2006-04-18 06:13
Radio/Music/Video help needed please. Amberman Installation, configuration support 0 2006-04-17 19:18
NON-GUI plugin problem in MediaPortal interface - VB.NET Anonymous MediaPortal Plugins 3 2004-10-28 13:29
Compile problems Anonymous General Development (no feature request here!) 1 2004-04-28 22:49


All times are GMT +1. The time now is 02:46.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden