Page 1 of 8

Custom UMSP Channels

PostPosted: Mon Apr 19, 2010 1:28 pm
by b-rad.cc
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:

Re: Custom UMSP Channels

PostPosted: Mon Apr 19, 2010 2:57 pm
by wantmore
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 ;)

Re: Custom UMSP Channels

PostPosted: Mon Apr 19, 2010 3:26 pm
by b-rad.cc
no i'm a merkan werewolf in canada :roll: :lol:

those are borrowed from the eminent em7075, a very cool NL device

Re: Custom UMSP Channels

PostPosted: Mon Apr 19, 2010 4:52 pm
by wantmore
Ah, so you can only program when there is not a full moon , eh? :lol:

Re: Custom UMSP Channels

PostPosted: Tue Apr 20, 2010 5:20 am
by Martor
So finally I know :)
b-rad is from Canada! Which part? Montreal, Toronto or Vancouver?

Greetings to CA ;)
Martin

Re: Custom UMSP Channels

PostPosted: Wed Apr 21, 2010 8:54 am
by wantmore
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.

Re: Custom UMSP Channels

PostPosted: Fri Apr 23, 2010 5:22 am
by gjtokkel
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
- ...

Re: Custom UMSP Channels

PostPosted: Fri Apr 23, 2010 2:39 pm
by wantmore
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.

Re: Custom UMSP Channels

PostPosted: Fri Apr 23, 2010 3:28 pm
by gjtokkel
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/# ?

Re: Custom UMSP Channels

PostPosted: Fri Apr 23, 2010 3:51 pm
by wantmore
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.