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:
-
itemsArrayAn array containing the items to be rendered
-
callbackFunctionThe callback method to execute after manipulation
-
errStringnull if no error occured, otherwise the error
-
resultObjectThe manipulated items
-
init
()
Initialize the webcams
streamer
(
-
input -
output -
resolution -
callback
Create an image using streamer
Parameters:
-
inputStringThe input to use, e.g. '/dev/video0'
-
outputStringThe output file, e.g. '/tmp/image.jpg'
-
resolutionStringThe resolution to use, e.g. '1280x720'
-
callbackFunctionThe callback method to execute after manipulation
-
errStringnull if no error occured, otherwise the error
-
resultObjectThe result of the exec call
-
