'''tar -cvzf umsp-plugins.tgz snapple.php'''
 
'''tar -cvzf umsp-plugins.tgz snapple.php'''
 +
 
'''mv -f umsp-plugins.tgz /tmp/conf'''
 
'''mv -f umsp-plugins.tgz /tmp/conf'''
    
Along with archive a script called umsp.php [[must]] be provided, this too is located in the /tmp/conf folder.  
 
Along with archive a script called umsp.php [[must]] be provided, this too is located in the /tmp/conf folder.  
   −
The umsp.php script contains one or more entries that add to the server global in effect registering the presence of the plugin
+
The umsp.php script contains one or more entries that add to the server global in effect registering the presence of the plugin. The details provided are attributes that will be published by the UMSP server - they define the attributes of the UPnP entity that may be consumed by any UPnP compliant device capable of rendering said entity - in our case that would be the WD box.
    
In this example we register the snapple plugin, we'll develop this plugin throughout this article
 
In this example we register the snapple plugin, we'll develop this plugin throughout this article
 
?>
 
?>
   −
At a minimum you'll need to provide the plugin with an id, a title and a upnp class
+
At a minimum you'll need to provide the plugin with an id, a title and a upnp class.
    
The id tells the UMSP server where to find your plugin script, in this example it'll look for a script file located under /tmp/umsp-plugins called snapple.php, the web server sees this path via the umnsp://plugins/ naming scheme - if you dig you'll see that the plugins folder under the UMSP server implementation is a symlink to the actual umsp-plugins folder
 
The id tells the UMSP server where to find your plugin script, in this example it'll look for a script file located under /tmp/umsp-plugins called snapple.php, the web server sees this path via the umnsp://plugins/ naming scheme - if you dig you'll see that the plugins folder under the UMSP server implementation is a symlink to the actual umsp-plugins folder
    +
The title is what will be displayed on the UMSP menu, in this case the '''SN-Apple - an example UMSP plug-in''' will show up on the initial UMSP menu along with the built in plugins; for those wanting a ''Hello World'' example substitute that string now.
   Exception encountered, of type "Error"