Webcam Class
Webcam Plugin. Plugin that uses streamer to create images from the webcam and pushes them to the clients
Constructor
Webcam
()
Item Index
Methods
Methods
beforeRender
(
-
items
-
callback
Manipulate the items array before render
Parameters:
-
items
ArrayAn array containing the items to be rendered
-
callback
FunctionThe callback method to execute after manipulation
-
err
Stringnull if no error occured, otherwise the error
-
result
ObjectThe manipulated items
-
init
()
Initialize the webcams
streamer
(
-
input
-
output
-
resolution
-
callback
Create an image using streamer
Parameters:
-
input
StringThe input to use, e.g. '/dev/video0'
-
output
StringThe output file, e.g. '/tmp/image.jpg'
-
resolution
StringThe resolution to use, e.g. '1280x720'
-
callback
FunctionThe callback method to execute after manipulation
-
err
Stringnull if no error occured, otherwise the error
-
result
ObjectThe result of the exec call
-