The GetCameraMode
function returns the current camera mode for the given camera. If no camera name is given, then the first connected camera is taken.
array: GetCameraMode([string cameraName=""])
var result = GetCameraMode("GoPro Hero 4"); // returns the current camera mode of the GoPro Hero 4 camera. // If the camera is not connected then false is returned.