A Viewer can be used to stream a single MJPEG topic into a canvas. Emits the following events: * 'warning' - emitted if the given topic is unavailable * 'change' - emitted with the topic name that the canvas was changed to
||possible keys include: * divID - the ID of the HTML div to place the canvas in * width - the width of the canvas * height - the height of the canvas * host - the hostname of the MJPEG server * port (optional) - the port to connect to * quality (optional) - the quality of the stream (from 1-100) * topic - the topic to stream, like '/wide_stereo/left/image_color' * overlay (optional) - a canvas to overlay after the image is drawn * refreshRate (optional) - a refresh rate in Hz * interval (optional) - an interval time in milliseconds|
- visualization/Viewer.js, line 25
Change the stream of this canvas to the given topic.
Name Type Description
the topic to stream, like '/wide_stereo/left/image_color'
- visualization/Viewer.js, line 98
A function to draw the image onto the canvas.
- visualization/Viewer.js, line 59