Skip to main content

Import

Constructor

Parameters

Methods

connect

Connect to a camera device.

disconnect

Disconnect from the camera device.

send

Send a PTP operation to the camera.

get

Get a camera property value.

set

Set a camera property value.

on

Register an event handler.

off

Unregister an event handler.

getAperture

Get the current aperture value.

setAperture

Set the aperture value.

getShutterSpeed

Get the current shutter speed value.

setShutterSpeed

Set the shutter speed value.

getIso

Get the current ISO value.

setIso

Set the ISO value.

captureImage

Capture an image from the camera.

captureLiveView

Capture a live view frame from the camera.

startRecording

Start video recording.

stopRecording

Stop video recording.

listObjects

List all objects stored on the camera.

getObject

Retrieve an object from the camera.

Exports

The module also exports the vendor-specific camera implementations:
  • CanonCamera
  • GenericCamera
  • NikonCamera
  • SonyCamera
These can be imported directly if you need vendor-specific functionality: