Brief introduction
This document introduces two APIs added from version V3.6.0.17.
- To obtain the functions supported by the camera
- Limit the type, order, and photo source (taken by) of the file list comes from the camera.
Check the camera capabilities, whether it support specified feature or not.
1. Class ICatchCameraProperty
2. C ++ method signature:
bool checkCameraCapabilities(unsigned int featureID);
3. Java method signature:
boolean checkCameraCapabilities(int featureID)throws IchSocketException, IchCameraModeException, IchInvalidSessionException, IchDevicePropException;`
4. Some featureIDs currently supported:
namespace com { namespace icatchtek{ namespace control{enum ICatchCamFeatureID{ICH_CAM_APP_DEFAULT_TO_PLAYBACK = 0x0001,ICH_CAM_NEW_PAGINATION_GET_FILE = 0x0002,ICH_CAM_TIMELAPSE_USING_MS_VALUE = 0x0004,};}}}
Definitions can be found in the ICatchCamFeatureID.h
package com.icatchtek.control.customer.type;public class ICatchCamFeatureID{public static final int ICH_CAM_APP_DEFAULT_TO_PLAYBACK = 0x0001;public static final int ICH_CAM_NEW_PAGINATION_GET_FILE = 0x0002;public static final int ICH_CAM_TIMELAPSE_USING_MS_VALUE = 0x0004;}
Definitions can be found in the ICatchCamFeatureID.java
ICH_CAM_APP_DEFAULT_TO_PLAYBACKUsed to get whether the camera wants the app to enter the file playback when it is opened,ICH_CAM_NEW_PAGINATION_GET_FILEUsed to get whether the camera supports functions related to fetching files by paginationICH_CAM_TIMELAPSE_USING_MS_VALUEGets whether the camera uses milliseconds as the unit of timelapse photography.
5. Example:
bool retVal = property->checkCameraCapabilities(ICH_CAM_APP_DEFAULT_TO_PLAYBACK);if (retVal) {// No preview, default to playback}else {// Default to preview.}
Set the file type, sorting method, source, of the file list obtained from the camera.
1. Class ICatchCameraPlayback
2. Java method signature:
boolean setFileListAttribute(int type, int order, int takenBy)throws IchSocketException, IchCameraModeException, IchInvalidSessionException;
3. C ++ method signature:
int setFileListAttribute(unsigned int type, unsigned int order, unsigned int takenBy);
4. Parameter introduction:
type: Specify the file type obtained by subsequent listFiles calls. Related file types are defined as follows:
namespace com { namespace icatchtek{ namespace control{class ICatchCamListFileFilter{public:static const int ICH_OFC_TYPE_VIDEO;static const int ICH_OFC_TYPE_IMAGE;static const int ICH_OFC_TYPE_MEDIA;static const int ICH_OFC_TYPE_EMERGENCY_VIDEO;static const int ICH_OFC_TYPE_EMERGENCY_IMAGE;static const int ICH_OFC_TYPE_EMERGENCY_MEDIA;static const int ICH_OFC_FILE_TYPE_ALL_MEDIA;/* Other definitions */};}}}
order: Specifies how to sort the files obtained by subsequent listFiles calls. Ascending or descending order can be selected.
namespace com { namespace icatchtek{ namespace control{class ICatchCamListFileFilter{/* Other definitions */public:ststatic const int ICH_SORT_TYPE_ASCENDING;static const int ICH_SORT_TYPE_DESCENDING;/* Other definitions */};}}}
takenBy: Specify photos or videos taken by which sensor, such as front camera, back camera, or composite.
namespace com { namespace icatchtek{ namespace control{class ICatchCamListFileFilter{/* Other definitions */public:static const int ICH_TAKEN_BY_ALL_SENSORS;static const int ICH_TAKEN_BY_FRONT_SENSOR;static const int ICH_TAKEN_BY_BACK_SENSOR;static const int ICH_COMPOSITE_FILE_TAKEN_BY_ALL_SENSORS;/* Other definitions */};}}}
5. Other notes
This operation is usually set before the listFiles calls. After setting, subsequent listFiles will get the desired files from the camera.
