Class: MultiStreamViewer

MultiStreamViewer(options)

A MultiStreamViewer can be used to stream multiple MJPEG topics 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

Constructor

new MultiStreamViewer(options)

Parameters:
Name Type Description
options Object possible keys include:
Properties
Name Type Attributes Description
divID string the ID of the HTML div to place the canvas in
width number the width of the canvas
height number the height of the canvas
host string the hostname of the MJPEG server
port number <optional>
(optional) - the port to connect to
quality number <optional>
(optional) - the quality of the stream (from 1-100)
topics Array.<string> an array of topics to stream
labels Array.<string> <optional>
(optional) - an array of labels associated with each topic
defaultStream number <optional>
(optional) - the index of the default stream to use
Source:

Methods

clearButton()

Clear the button from the overlay canvas.
Source:

fadeImage()

Fades the stream by putting an overlay on it.
Source: