API Docs for: 0.0.1
Show:

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

beforeRender

(
  • items
  • callback
)

Manipulate the items array before render

Parameters:

  • items Array

    An array containing the items to be rendered

  • callback Function

    The callback method to execute after manipulation

    • err String

      null if no error occured, otherwise the error

    • result Object

      The manipulated items

init

()

Initialize the webcams

streamer

(
  • input
  • output
  • resolution
  • callback
)

Create an image using streamer

Parameters:

  • input String

    The input to use, e.g. '/dev/video0'

  • output String

    The output file, e.g. '/tmp/image.jpg'

  • resolution String

    The resolution to use, e.g. '1280x720'

  • callback Function

    The callback method to execute after manipulation

    • err String

      null if no error occured, otherwise the error

    • result Object

      The result of the exec call