Sign up here and you can log into the forum!

UMSP Plugin Development

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: UMSP Plugin Development   

Postby avkiev » Mon Apr 11, 2011 3:59 am

mad_ady wrote:I have added the 'devel' folder

Good, thanks

Another question for developers:
Now we have a lot of plugins. So, we have a very long UMSP-page in WEC.
My proposition is: show plugin's options only for enabled plugins.
It is quite easy: just use operator
if (_readPluginStatus($id)=="on") { ... }
in plugin_wec.php

See revision 189 as an example.
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

Re: UMSP Plugin Development   

Postby recliq » Mon Apr 11, 2011 4:21 am

It's not quite that easy, because I think right now the plugins are activated from within their WEC entries you are hiding with this hack. Not sure though maybe someone more intimate with UMSP plugins and WEC should comment on this.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: UMSP Plugin Development   

Postby avkiev » Mon Apr 11, 2011 10:17 am

mad_ady wrote:Can somebody with commit access to wdlxtv update the entry to allow also the devel repo?

I think - it is better to read theirs dynamically, from SVN,
than hardcode it
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

Re: UMSP Plugin Development   

Postby avkiev » Mon Apr 11, 2011 10:22 am

recliq wrote:It's not quite that easy, because I think right now the plugins are activated from within their WEC entries you are hiding with this hack. Not sure though maybe someone more intimate with UMSP plugins and WEC should comment on this.

I don't understand your doubts.
I can edit all current plugins for this technique.
I've edited my plugins. It's really quite easy. But I don't want touch not my plugins.

Ok, lets wait for another comments...
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

Re: UMSP Plugin Development   

Postby mad_ady » Mon Apr 11, 2011 10:51 am

avkiev's trick works great. I will extend it to youtube subscriptions tomorrow.

... And I agree with you - the plugin list should be dynamically built, but I'm not sure how easy/efficient that would be.
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby avkiev » Mon Apr 11, 2011 11:32 am

mad_ady wrote:I'm not sure how easy/efficient that would be.

It's really quite easy:
Code: Select all
/>svn list http://svn.wdlxtv.com/svn/UMSP
deutsch/
devel/
espanol/
plugins/
restricted-plugins/
russian/
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

Re: UMSP Plugin Development   

Postby RMerlin » Mon Apr 11, 2011 12:43 pm

avkiev wrote:
mad_ady wrote:I'm not sure how easy/efficient that would be.

It's really quite easy:
Code: Select all
/>svn list http://svn.wdlxtv.com/svn/UMSP
deutsch/
devel/
espanol/
plugins/
restricted-plugins/
russian/


That won't allow you to have an actual description. "restricted" is not as intuitive as "Adult" or "Age-Restricted". Beside, SVN is slow. My goal is to speed up WEC, not to slow it down even more.

The current repository handling that I did was quickly implemented at the last minute to be ready in time for 0.4.7.0. My plan for the future is to rely on an XML file that would define the list of repositories as well as a user-friendly name for each repository. That however is currently on standby as we (the WDLXTV devs) are planning other fundamental changes in how we handle online updating/downloading. That has to be completed before we can get back to tackling the actual plugin/repositories management.

Without going int details as we haven't finalized anything, let's just say you should not get too attached to SVN...
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: UMSP Plugin Development   

Postby RMerlin » Mon Apr 11, 2011 12:48 pm

UI change proposal for WEC: what if I made each plugin collapsable (and collapsed by default)? You'd click on a plugin to have its config entries appear?

That'd be trivial to implement in WEC, I already have working code around for that.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: UMSP Plugin Development   

Postby mad_ady » Mon Apr 11, 2011 10:01 pm

@RMerlin: that approach would be better, since the user could expand the options they want without reloading the page (like avkiev's solution requires). However, you should keep plugin description and forum link visible.
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin Development   

Postby avkiev » Mon Apr 11, 2011 11:47 pm

RMerlin wrote:what if I made each plugin collapsable (and collapsed by default)?

Good idea.
It would be great if you can implement 4 buttons:
- Collapse All
- Collapse Only Disabled Plugins
- Expand Only Enabled Plugins
- Expand All
avkiev
Developer
 
Posts: 167
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest