upnpserver
Simple Upnpserver server. It supports several audio tags (id3,...) and matroska metadatas.
Last updated 3 years ago by oeuillot .
GPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install upnpserver 
SYNC missed versions from official npm registry.

Build Status NPM version

upnpserver

upnpserver icon

UpnpServer is a fast and light UPnP server written in NodeJS. This version does not need an external database (mysql, mongodb), it stores all information in memory.

Compatibility

  • Freebox HD
  • Soundbridge
  • ht5streamer
  • Intel Device Validator
  • Samsung AllShare play
  • LG Smart Share
  • Android
    • VPlayer (with UPNP Plugin)
    • NX Player

Installation

$ npm install upnpserver

Command line

For command line, install upnpserver-cli package.

API Usage

var Server = require("upnpserver");

var server = new Server({ /* configuration, see below */ }, [
  '/home/disk1',
  { path: '/home/myDisk' },
  { path: '/media/movies', mountPoint: '/My movies'},
  { path: '/media/albums', mountPoint: '/Personnal/My albums', type: 'music' }
]);

server.start();

##Configuration Server constructor accepts an optional configuration object. At the moment, the following is supported:

  • log Boolean Enable/disable logging. Default: false.
  • logLevel String Specifies log level to print. Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL. Defaults to ERROR.
  • name String Name of server. Default 'Node Server'
  • uuid String UUID of server. (If not specified, a UUID v4 will be generated)
  • hostname String Hostname to bind the server. Default: 0.0.0.0
  • httpPort Number Http port. Default: 10293
  • dlnaSupport Boolean Enable/disable dlna support. Default: true
  • strict Boolean Use only official UPnP attributes. Default: false
  • lang String Specify the language (en, fr) for virtual folder names. Default: en
  • ssdpLog Boolean Enable log of ssdp layer. Default: false
  • ssdpLogLevel String Log level of ssdp layer.

Testing

For testing purposes used mocha framework. To run tests, you should do this:

make test

Author

Olivier Oeuillot

Contributors

https://github.com/oeuillot/upnpserver/graphs/contributors

Current Tags

  • 3.0.2                                ...           latest (3 years ago)

11 Versions

  • 3.0.2                                ...           3 years ago
  • 2.1.3                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.6                                ...           6 years ago
  • 1.1.4                                ...           6 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 13
Dependencies (22)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |