upnp-device
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "upnp-device", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Create UPnP devices in Node.js", | ||
@@ -11,3 +11,3 @@ "keywords": [ "upnp" ], | ||
"directories": { "lib": "./lib" }, | ||
"engines": { "node": "<= 0.4.12" }, | ||
"engines": { "node": ">=0.8.8" }, | ||
"dependencies": { | ||
@@ -30,3 +30,4 @@ "async": "*", | ||
"url": "git://github.com/jacobrask/node-upnp-device.git" | ||
} | ||
}, | ||
"contributors": ["Eelco Cramer"] | ||
} |
@@ -9,4 +9,3 @@ # UPnP Devices for Node.js | ||
* Only implemented device specification is MediaServer:1 | ||
* MediaServer can only serve media from local file system | ||
* And more... | ||
* Only tested with audio | ||
@@ -18,5 +17,4 @@ | ||
Note that you need Node 0.4.12. upnp-device is ___not___ compatible with Node 0.6.x due to some missing UDP features in 0.6.x. They are expected to be implemented fairly soon, and then upnp-device will be ported to 0.6.x. | ||
You also need to install Redis, preferrably using your system package manager. | ||
# Documentation | ||
@@ -56,2 +54,20 @@ | ||
### upnp.createMyDevice(device, name[, address]) | ||
Create an instance of your own device implementation. Check the examples on how to create your own devices and services. | ||
* implementation - A implementation of a device specified by the [UPnP Forum][upnp-dcp] | ||
* name - The name of the device as it shows up in the network. | ||
* address - Optional IP address to bind server to. | ||
``` | ||
var myDevice = require('./MyDevice') | ||
var device = upnp.createMyOwnDevice(myDevice, 'My Device'); | ||
device.on('ready', function() { | ||
device.ssdpAnnounce(); | ||
}); | ||
``` | ||
### upnp.createDevice(type, name[, address]) | ||
@@ -58,0 +74,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
77647
28
8
139
2