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

Custom UMSP Channels   

Postby b-rad.cc » Mon Apr 19, 2010 1:28 pm

There is a way for you to add custom channels to UMSP without doing anything to the UMSP code. In this thread I'll show you how.

Essentially, every time UMSP is loaded it checks to see if /conf/umsp.php exists and if it does it adds your custom channels to the root channel list. Your channel can be as simple as a direct location or a location of external plugin code.

Example one adds one of the channels which I have disabled from being on by default. I have disabled it because its dutch ;)
Code: Select all
<?php

global $myMediaItems;

$myMediaItems[] = array(   
   'id'         => strval(count($myMediaItems)+1),   #Attribute of item
   'parentID'      => '0',                     #Attribute of item
   'restricted'   => '0',                     #Attribute of item
   'dc:creator'   => 'myCreator',
   'dc:title'      => 'Geenstijl.tv : Rutger meets de adellijke babyboomert in de Saab - 720P',
   'dc:date'      => '2009-12-30',
   'upnp:author'   => 'myAuthor',
   'upnp:artist'   => 'myArtist',
   'upnp:album'   => 'myAlbum',
   'upnp:genre'   => 'myGenre',
   'upnp:length'   => '2:10:20',
   'desc'         => 'myDesc',
   'upnp:class'   => 'object.item.videoItem',
   'upnp:album_art'=> '',
   'res'         => 'http://flv.dumpert.nl/353462f8_adel.mp4',
   'duration'      => 'myDur3',            #Attribute of res
   'size'         => 'mySize3',            #Attribute of res in bytes
   'bitrate'      => 'myBitr',            #Attribute of res
   'protocolInfo'   => 'http-get:*:video/mp4:*',      #Attribute of res
   'resolution'   => 'myReso',            #Attribute of res
   'colorDepth'   => 'myColor',            #Attribute of res
);
?>



This second example is pointing to one of the plugins that is disabled, because either doesn't work on not in english.
Code: Select all
<?php

global $myMediaItems;

$myMediaItems[] = array(   
   'id'         => 'umsp://plugins/bliptv',   #Attribute of item
   'parentID'      => '0',                     #Attribute of item
   'restricted'   => '1',                     #Attribute of item
   'dc:creator'   => 'myCreator',
   'dc:title'      => 'Blip.tv Vodcasts',
   'dc:date'      => '2009-12-30',
   'upnp:author'   => 'myAuthor',
   'upnp:artist'   => 'myArtist',
   'upnp:album'   => 'myAlbum',
   'upnp:genre'   => 'myGenre',
   'upnp:length'   => '2:10:20',
   'desc'         => 'myDesc',
   'upnp:class'   => 'object.container',
   'upnp:album_art'=> '',
   'duration'      => 'myDur3',            #Attribute of res
   'size'         => 'mySize3',            #Attribute of res in bytes
   'bitrate'      => 'myBitr',            #Attribute of res
   'protocolInfo'   => '*:*:*:*',      #Attribute of res
   'resolution'   => 'myReso',            #Attribute of res
   'colorDepth'   => 'myColor',            #Attribute of res
);
?>


I'm unsure until someone experiments if you can set id => 'file://var/www/plugins/umspRandomPlugin/' to run a UMSP plugin loaded into webend via add.webplugin---but perhaps and if not I'm sure the code can be extended to handle it.

Now how about we start a UMSP plugin thread :mrgreen:
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: Custom UMSP Channels   

Postby wantmore » Mon Apr 19, 2010 2:57 pm

So you are Dutch, eh? I thought perhaps German :lol:

Well, I still think a lot of that isn't explained - but as soon as we can experiment I'm probably going to give it a shot ;)
wantmore
DLX'er
 
Posts: 109
Joined: Fri Apr 16, 2010 10:54 am

Re: Custom UMSP Channels   

Postby b-rad.cc » Mon Apr 19, 2010 3:26 pm

no i'm a merkan werewolf in canada :roll: :lol:

those are borrowed from the eminent em7075, a very cool NL device
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: Custom UMSP Channels   

Postby wantmore » Mon Apr 19, 2010 4:52 pm

Ah, so you can only program when there is not a full moon , eh? :lol:
wantmore
DLX'er
 
Posts: 109
Joined: Fri Apr 16, 2010 10:54 am

Re: Custom UMSP Channels   

Postby Martor » Tue Apr 20, 2010 5:20 am

So finally I know :)
b-rad is from Canada! Which part? Montreal, Toronto or Vancouver?

Greetings to CA ;)
Martin
1.02.21_V_WDLXTV.COM_WDLXTV_LIVE-0.5.1.1
Martor
DLX'er
 
Posts: 98
Joined: Sat Apr 10, 2010 9:58 pm
Location: Czech Republic

Re: Custom UMSP Channels   

Postby wantmore » Wed Apr 21, 2010 8:54 am

b-rad.cc wrote:I'm unsure until someone experiments if you can set id => 'file://var/www/plugins/umspRandomPlugin/' to run a UMSP plugin loaded into webend via add.webplugin---but perhaps and if not I'm sure the code can be extended to handle it.


Things put in /var/www/plugins/ seems to disappear again after a reboot -f

But putting it in /tmp/conf/ it survives - but setting id to the file doesn't seem to work.


I see zoster says that is not possible at the moment.



no idea how add.webplugin works.
wantmore
DLX'er
 
Posts: 109
Joined: Fri Apr 16, 2010 10:54 am

Re: Custom UMSP Channels   

Postby gjtokkel » Fri Apr 23, 2010 5:22 am

anyway, to come back to the content of this forum:

Does anybody have some suggestions for custom UMSP channels?
like:
- http://www.dumpert.nl
- uitzending gemist
- ...
gjtokkel
Donor
 
Posts: 29
Joined: Thu Apr 15, 2010 8:45 am

Re: Custom UMSP Channels   

Postby wantmore » Fri Apr 23, 2010 2:39 pm

Well, it depends on the capability of UMSP/the device

Its only HTTP protocol right?

Also, what is it with mp4s - I tried the bliptv.php one, and all the mp4s start by playing fine and then the start suttering a few frames at a time. Those from blip are rather large so i chose somewhere else with much smaller files, but that was the same.

On the other hand the quicktime ones seem to play fine.

I wonder if there is some trick to playback.
wantmore
DLX'er
 
Posts: 109
Joined: Fri Apr 16, 2010 10:54 am

Re: Custom UMSP Channels   

Postby gjtokkel » Fri Apr 23, 2010 3:28 pm

wantmore wrote:Well, it depends on the capability of UMSP/the device

Its only HTTP protocol right?

Also, what is it with mp4s - I tried the bliptv.php one, and all the mp4s start by playing fine and then the start suttering a few frames at a time. Those from blip are rather large so i chose somewhere else with much smaller files, but that was the same.

On the other hand the quicktime ones seem to play fine.

I wonder if there is some trick to playback.

well, guess vodcast are quite standard I guess. If you knew how to add any vodcast channel, possibilities are endless....
can 'Category: Comedy (RSS Vodcasts)' be tweaked to play other vodcasts like http://www.itelevision.nl/categorie/tv-links/uitzending-gemist/feed/# ?
gjtokkel
Donor
 
Posts: 29
Joined: Thu Apr 15, 2010 8:45 am

Re: Custom UMSP Channels   

Postby wantmore » Fri Apr 23, 2010 3:51 pm

gjtokkel wrote:well, guess vodcast are quite standard I guess.

Nothing i wrote suggested that conclusion.

gjtokkel wrote:
If you knew how to add any vodcast channel, possibilities are endless....
can 'Category: Comedy (RSS Vodcasts)' be tweaked to play other vodcasts like http://www.itelevision.nl/categorie/tv-links/uitzending-gemist/feed/# ?


That's just a text feed, there are no media links in it.
wantmore
DLX'er
 
Posts: 109
Joined: Fri Apr 16, 2010 10:54 am

Next

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 3 guests