User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

getpossiblecamerastatesfortype [2016/09/06 07:29] (current)
act created
Line 1: Line 1:
 +====== GetPossibleCameraStatesForType ======
 +The ''​GetPossibleCameraStatesForType''​ function returns a list of possible camera states for a given [[getcamerastatetypes|camera state type]] for the given camera. If no camera name is given, then the first connected camera is taken. Examples for camera states are "​connecting",​ "​connected",​ "​charging",​ etc.
 +==== Syntax ====
 +array: GetPossibleCameraStatesForType(string cameraStateName[,​ string cameraName=""​])
 +==== Examples ====
 +var result = GetPossibleCameraStatesForType("​ConnectionState"​);​
 +// returns a list of possible connection states for the first connected
 +// camera.
 +// Returns false if no camera is connected, or if the given camera state name
 +// is invalid.
getpossiblecamerastatesfortype.txt · Last modified: 2016/09/06 07:29 by act