Sign up here and you can log into the forum!

Custom UMSP Channels

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

Re: Custom UMSP Channels   

Postby shunte » Thu Feb 17, 2011 9:17 pm

I took a look at the eminent UMSP plugins and the version of the ZDF plugin mentioned ^^ is already in the WD SVN repository

Its the news-zdf.php file

If you look at the code you'll see its nothing but a podcast so you should be able to add that pretty easily to daily-podcasts

here is the podcast URI if you want to go the daily-podcasts route
Code: Select all
http://www.zdf.de/ZDFmediathek/podcast/222506?view=podcast

Alternatively if you'd like to use the code as is, note that it may or may not be 100% functional, then add the following to your /conf/umsp.php to have it show up in the UMSP menu
Code: Select all
   # --Z-D-F---M-e-d-i-a-t-h-e-k---->
   $myMediaItems[] = array (       
      'id'      => 'umsp://plugins/news-zdf',
      'parentID'   => '0',
      'dc:title'   => 'ZDF Mediathek',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> 'http://www.zdf.de/ZDF/img/zdflogo.gif',
   );
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: Custom UMSP Channels   

Postby paumlhp » Mon Feb 21, 2011 10:25 pm

Someone can guide me on a add thumbs to plugins?
paumlhp
WDTVer
 
Posts: 34
Joined: Wed Nov 10, 2010 12:19 am

Re: Custom UMSP Channels   

Postby recliq » Tue Feb 22, 2011 2:28 am

just look at the second code box in the post before yours.... :roll:
­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: Custom UMSP Channels   

Postby paumlhp » Sun Feb 27, 2011 1:49 am

Just insert this?

Code: Select all
'upnp:album_art'=> 'http://www.zdf.de/ZDF/img/zdflogo.gif',
paumlhp
WDTVer
 
Posts: 34
Joined: Wed Nov 10, 2010 12:19 am

Re: Custom UMSP Channels   

Postby shunte » Sun Feb 27, 2011 9:24 pm

the above ^^ is specific to the ZDF plug-in

if you specify the upnp:album_art attribute for any UMSP item it'll display as a thumbnail, just provide the location of the image you wish to display. The image can exist locally, on your network or the Internet.

If the image is local or on your network then it must be "visible" within the domain of the WD's built in webserver

There are numerous examples posted throughout the UMSP forums or if you want to poke around the current plug-ins on your system for ideas try the following :
Code: Select all
find /tmp/umsp-plugins -name "*.php" -exec grep "umsp:album_art" '{}' \; -print
check out the Wiki too http://wiki.wdlxtv.com/UMSP_plugin_development
Hope that helps
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: Custom UMSP Channels   

Postby paumlhp » Mon Feb 28, 2011 8:26 pm

Thanks mate. I'll try.
paumlhp
WDTVer
 
Posts: 34
Joined: Wed Nov 10, 2010 12:19 am

Re: Custom UMSP Channels   

Postby sfleisch » Sat Mar 19, 2011 4:30 pm

Does this only work if you are booting from ext rather than from firmware?
sfleisch
Donor
 
Posts: 3
Joined: Sat Nov 06, 2010 10:30 am

Re: Custom UMSP Channels   

Postby shunte » Mon Mar 21, 2011 2:42 pm

works on all versions of WDLXTV firmware with or without attached media
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: Custom UMSP Channels   

Postby ma » Tue Nov 15, 2011 11:06 am

I am trying to add some live streaming contents by adding url to /config/umsp.php file. I am trying to create/edit that file from a telnet session (from the wd dashboard screen) and then opening the file using vi editor.

I have two questions (I am new to Linux)
Is there a way to copy code from clipboard to VI editor so that I don't have to retype if I just want to cut and paste from windows to the editor. I tried +p but get messge like Regeister D is empty.
2) When I manually entered some code in \config\umsp.php file all pugins from the Umsp menu disappeard. Can this be the result of some syntax error in the code? if yes, should't I just get some error message when I try to run that particular code instead disapperance of all plugins from the menu (when I deleted /config/umsp.php file all plugins appeared in the umsp menu.

I am just trying to understad what I may be doing wrong and how to add a code to stream live tv channels.

Also if someone could add something like http://www.vumarks.com/ that will be great. This site allows to add any live stream url and allow to play on vunow media player device.
ma
n00b
 
Posts: 12
Joined: Sat Nov 12, 2011 8:08 pm

Re: Custom UMSP Channels   

Postby KAD » Tue Nov 15, 2011 11:11 am

an easier way to edit these files,
FTP client
copy to windows desktop
use a proper text editor like notepad++ or other that undestands php
copy your edited version back to WD

also if you insist on editing from shell nano is much friendlier than vi

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron