Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moitux/pmjpg
Proxy mjpg
https://github.com/moitux/pmjpg
Last synced: about 10 hours ago
JSON representation
Proxy mjpg
- Host: GitHub
- URL: https://github.com/moitux/pmjpg
- Owner: MoiTux
- License: mit
- Created: 2020-05-03T15:59:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T17:03:41.000Z (almost 5 years ago)
- Last Synced: 2023-08-03T02:08:39.211Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pmjpg: Proxy mjpg
pmjpg is kinda proxy for a mjpg camera.
# Why
This was needed to be able to use a IP camera (DSC-5030L) inside a Diapora (PowerPoint).
A plugin is used to show a web page in the Diapora (www.liveslides.com) which embed a
Chromium version 43.0.2357.0 which doesn't support the mjpg format.An other problem needed to be resolved: the URL `http://user:pwd@ip` is not supported anymore,
but it was mandatory that the camera couldn't be used without some kind of credential.# Use
It's a simple GO HTTP sever, which will exposed a `GET /image` handler and any other one define
in the template directory.The template can be any valid HTML page with some variable to be define, and which should call
the `Get /image` at the desired frequency, see the `idx?.html` file for some example.The "X-Idx" optional header is used to reused the same connection to the camera allowing a much
faster frequency and avoiding sharing it with different client. It's the server that will
generate it, when generating the template.