A Node.JS MJPEG proxy implementation
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead, 5 commits behind philrene:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
node-mjpeg-proxy.js

README.md

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