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
Clear the button from the overlay canvas.
- Source:
fadeImage()
Fades the stream by putting an overlay on it.
- Source: