User Tools

Site Tools


getcamerastate

Differences

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

Link to this comparison view

getcamerastate [2016/09/06 07:32] (current)
act created
Line 1: Line 1:
 +====== GetCameraState ======
 +The ''​GetCameraState''​ function returns the current [[getpossiblecamerastatesfortype|camera state]] for a given [[getcamerastatetypes|camera state type]] for the given camera. If no camera name is given, then the first connected camera is taken.
  
 +==== Syntax ====
 +<​code>​
 +string: GetCameraState(string cameraStateName[,​ string cameraName=""​])
 +</​code>​
 +
 +==== Examples ====
 +<​code>​
 +var result = GetCameraState("​ConnectionState",​ "GoPro Hero 4");
 +// returns the current connection state for the GoPro Hero 4
 +// camera.
 +// Returns false if the given camera state name is invalid.
 +</​code>​
getcamerastate.txt · Last modified: 2016/09/06 07:32 by act