Giter VIP home page Giter VIP logo

upnpserver's Introduction

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

upnpserver's People

Contributors

cfsghost avatar grplyler avatar iperevozchikov avatar joevennix avatar octplane avatar oeuillot avatar reidsy avatar s-leger avatar vf1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.