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



