Coder Social home page Coder Social logo

node-mjpeg-proxy's Introduction

node-mjpeg-proxy

This is a simple implementation of a MJPEG proxy written with node.js.

Documentation

Example Usage

var mpjegproxy = require("./lib/node-mjpeg-proxy");
mpjegproxy.createProxy("http://192.1.2.3:8080/videofeed");

Here, it will create a proxy to the source video feed (http://192.1.2.3:8080/videofeed) with the default options (below). You can now access the feed at http://localhost:5080/ .

Proxy

Proxy.createProxy(sourceURL, [options]);

Returns: a Proxy instance.

Arguments:

  • sourceURL

    The source URL of the MJPEG feed to be proxied.

Options:

  • port

    The destination port. Defaults to 5080.

TODO

  • Add a resource URL so that it can serve on certain resource URLs rather than require its onw http.Server instance.

Credits

node-mjpeg-proxy's People

Contributors

chrisirhc avatar philrene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-mjpeg-proxy's Issues

SSL support?

Hi, I'm using node-mjpeg-proxy with restify (which in turn uses express under the hood). This is my test code:

var server = restify.createServer({
  name: "Server v2.0",
  key: key,
  certificate: cert
});
server.get("/cam", new mjpegProxy("http://admin:[email protected]:99/videostream.cgi").proxyRequest);

server.listen(8080, function() {
  console.log("Server ready to accept requests");
});

This works perfectly fine, except...Chrome says that the connection isn't secure. This is odd, because all my other endpoints work fine with SSL (it's not a problem with my certs). What could be the issue?

Digest authorization?

It seems to support basic authorization but is failing with digest auth. One of my cameras won't do basic.

I'm not a programmer, but I can read code a little. This seems to rely on the node "http" module, which is basic only. Would it be trivial to change it over to "request" module, which seems to support digest authorization? I may try to myself, but it will take me a while since I seem to be better at reading code than creating it.

Thanks--this is a great help. I don't like allowing my cheap cameras to speak directly to the outside world. This helps me isolate them.

Limits

Hello, there's any limit about how many streams could I setup? I've tested it but I can't get more than 6 at a time.

Thanks!

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.