User Tools

Site Tools


getcamerastate

Table of Contents

GetCameraState

The GetCameraState function returns the current camera state for a given camera state type for the given camera. If no camera name is given, then the first connected camera is taken.

Syntax

string: GetCameraState(string cameraStateName[, string cameraName=""])

Examples

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.
getcamerastate.txt · Last modified: 2016/09/06 07:32 by act