Skip to content

WIP - Enable http polling instead of multipart streaming

Mael Gaspard Lhoutellier requested to merge http_fetching into master

Enable http polling at a certain rate instead of streaming.

To fetch images with GET, add the http parameter in the camera config.

The rate parameter defines the duration (in ms) between two requests.

{ name: 'cam1', url: 'http://camensti1.cern.ch/image/jpeg.cgi', rate: 2000, http: true }

instead of 

{ name: 'cam1', url: 'http://camensti1.cern.ch/video/mjpg.cgi', throttle: 2000 }

For an example of usage, see https://gitlab.cern.ch/mlhoutel/cam-express-test

  • Handle websocket clients
    • Add a parameter for MJPEG / HTTP
    • Limit the fetch rate with a parameter (+ default value)
    • Fetch a jpg image with http get
    • Return it to the client via ws
Edited by Mael Gaspard Lhoutellier

Merge request reports