OnWarningExt event¶
- Definition
void OnWarningExt(CrInt32u warning, CrInt32 param1, CrInt32 param2, CrInt32 param3);
SDIE_AFStatus¶
Notify the AF status.
- warning code
CrWarningExt_AFStatus
- param1
Status
CrWarningExt_AFStatusParam_Unlocked
CrWarningExt_AFStatusParam_Focused_AF_S
CrWarningExt_AFStatusParam_NotFocused_AF_S
CrWarningExt_AFStatusParam_TrackingSubject_AF_C
CrWarningExt_AFStatusParam_Focused_AF_C
CrWarningExt_AFStatusParam_NotFocused_AF_C
CrWarningExt_AFStatusParam_Unpause
CrWarningExt_AFStatusParam_Pause
SDIE_OperationResults¶
Notify the operation results.
- warning code
CrWarningExt_OperationResults
- param1
SDK API
CrSdkApi_Unknown
CrSdkApi_Invalid
CrSdkApi_SetDeviceProperty
CrSdkApi_SendCommand
CrSdkApi_ExecuteControlCode
param2
If param1=CrSdkApi_SetDeviceProperty, param2= CrDeviceProperty_xx.If param1=CrSdkApi_SendCommand, param2= CrCommandId_xx.If param1=CrSdkApi_ExecuteControlCode, param2= CrControlCode_xx.
- param3
Result
CrWarningExt_OperationResultsParam_Invalid
CrWarningExt_OperationResultsParam_OK *1
CrWarningExt_OperationResultsParam_NG
CrWarningExt_OperationResultsParam_InvalidParameterError
CrWarningExt_OperationResultsParam_CameraStatusError
CrWarningExt_OperationResultsParam_ExecuteCanceled
CrWarningExt_OperationResultsParam_CharacterSizeError
CrWarningExt_OperationResultsParam_LowBrightnessError
CrWarningExt_OperationResultsParam_TimeLimitExceededError
CrWarningExt_OperationResultsParam_HighBrightnessError
CrWarningExt_OperationResultsParam_ColorTempHighError
CrWarningExt_OperationResultsParam_ColorTempLowError
CrWarningExt_OperationResultsParam_TintOutOfRangeError
CrWarningExt_OperationResultsParam_PoorWhiteAreaError
*1 OK events are not notified for the following Operations.When OK (NG was not notified), check the result of the operation with the respective CrDeviceProperty.- CrDeviceProperty_NearFarIf you want to check “Focus Driving Completed”, use CrDeviceProperty_FocusPositionSetting and CrWarning_FocusPosition_Result_OK.
CrDeviceProperty_Zoom_Operation
CrDeviceProperty_RemoteTouchOperation
CrCommandId_APS_C_or_Full_Switching
CrCommandId_FlickerScan
SDIE_PresetPTZFEvent¶
Notify the PresetPTZF Event.
- warning code
CrWarningExt_PresetPTZFEvent
- param1
Event Type
CrWarningExtParam_PresetPTZFEvent_Invalid
CrWarningExtParam_PresetPTZFEvent_DriveCompleted
CrWarningExtParam_PresetPTZFEvent_DriveInterrupted
CrWarningExtParam_PresetPTZFEvent_DriveError
ControlPTZF callback¶
see Control Pan/Tilt
- warning code
CrWarningExt_ControlPTZFResult
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
- param2
Result
CrWarningExtParam_ControlPTZFResult_Invalid
CrWarningExtParam_ControlPTZFResult_OK
CrWarningExtParam_ControlPTZFResult_NG
CrWarningExtParam_ControlPTZFResult_Canceled
- param3
Control Type
CrPTZFControlType_Absolute
CrPTZFControlType_Relative
CrPTZFControlType_Direction
CrPTZFControlType_HomePosition
CrPTZFControlType_Reset
CrPTZFControlType_Cancel
DeleteRemoteTransferContentsFile callback¶
- warning code
CrWarningExt_DeleteContent
- param1
Result
CrWarningExtParam_DeleteContentResult_Invalid
CrWarningExtParam_DeleteContentResult_OK
CrWarningExtParam_DeleteContentResult_StatusError
CrWarningExtParam_DeleteContentResult_DeviceBusy
CrWarningExtParam_DeleteContentResult_ContentProtected
CrWarningExtParam_DeleteContentResult_ContentNotExist
- param2
Response code
Explanation
contentsId
Contents ID
- param3
Response code
Explanation
slotNumber
Slot Number
DownloadSceneFile callback¶
When succeeded, OnCompleteDonwload() is called.
- warning code
CrWarningExt_DownloadSceneFile
- param1
warning code
CrWarningExtParam_DownloadSceneFileResult_Invalid
CrWarningExtParam_DownloadSceneFileResult_DeviceBusy
CrWarningExtParam_DownloadSceneFileResult_NG
ExecuteEframing, UpdateEframingArea callback¶
- warning code
CrWarningExt_ExecuteEframing
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
PresetPTZFClear callback¶
- warning code
CrWarningExt_PresetPTZFClear
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
PresetPTZFSet callback¶
- warning code
CrWarningExt_PresetPTZFSet
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
RequestStreamSettingList callback¶
- warning code
CrWarningExt_RequestStreamSettingList
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
RequestTimeZoneSetting callback¶
- warning code
CrWarningExt_RequestTimeZoneSetting
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
SendCommand error callback¶
- warning code
CrWarningExt_OperationInvalid
- param1,param2,param3
SetStreamSettingList callback¶
- warning code
CrWarningExt_SetStreamSettingList
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
- param2
Result
CrWarningExtParam_SetStreamSetting_OK
CrWarningExtParam_SetStreamSetting_NG
CrWarningExtParam_SetStreamSetting_InvalidURL
CrWarningExtParam_SetStreamSetting_InvalidPort
CrWarningExtParam_SetStreamSetting_InvalidKey
CrWarningExtParam_SetStreamSetting_InvalidLatency
CrWarningExtParam_SetStreamSetting_InvalidTTL
CrWarningExtParam_SetStreamSetting_InvalidCipherType
CrWarningExtParam_SetStreamSetting_InvalidCipherKey
CrWarningExtParam_SetStreamSetting_InvalidMode
SetTimeZoneSetting callback¶
- warning code
CrWarningExt_SetTimeZoneSetting
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
UploadGridLineFile callback¶
- warning code
CrWarningExt_UploadCustomGridLineFile
- param1
Result&Response
CrWarningExtParam_UploadCustomGridLineFile_Invalid
CrWarningExtParam_UploadCustomGridLineFile_OK
CrWarningExtParam_UploadCustomGridLineFile_StatusError
CrWarningExtParam_UploadCustomGridLineFile_InvalidFileName
CrWarningExtParam_UploadCustomGridLineFile_MediaError
CrWarningExtParam_UploadCustomGridLineFile_ReadError
CrWarningExtParam_UploadCustomGridLineFile_OverFileSize
CrWarningExtParam_UploadCustomGridLineFile_OverImageSize
CrWarningExtParam_UploadCustomGridLineFile_DecodeError
CrWarningExtParam_UploadCustomGridLineFile_InvalidParameter
CrWarningExtParam_UploadCustomGridLineFile_File_CantOpen
CrWarningExtParam_UploadCustomGridLineFile_File_CantRead
CrWarningExtParam_UploadCustomGridLineFile_DeviceBusy
CrWarningExtParam_UploadCustomGridLineFile_FeatureVersionInvalidValue
CrWarningExtParam_UploadCustomGridLineFile_TemporaryStorageFull
CrWarningExtParam_UploadCustomGridLineFile_CameraStatusError
UploadSceneFile callback¶
- warning code
CrWarningExt_UploadSceneFile
- param1
Result&Response
CrWarningExtParam_UploadSceneFileResult_Invalid
CrWarningExtParam_UploadSceneFileResult_OK
CrWarningExtParam_UploadSceneFileResult_NG
CrWarningExtParam_UploadSceneFileResult_InvalidFileName
CrWarningExtParam_UploadSceneFileResult_DeviceBusy
CrWarningExtParam_UploadSceneFileResult_SomeIsCorrupted
CrWarningExtParam_UploadSceneFileResult_InvalidParameter
CrWarningExtParam_UploadSceneFileResult_FeatureVersionInvalidValue
CrWarningExtParam_UploadSceneFileResult_TemporaryStorageFull
CrWarningExtParam_UploadSceneFileResult_File_CantOpen
CrWarningExtParam_UploadSceneFileResult_File_CantRead
ControlGeneralSettingFile callback¶
- warning code
CrWarningExt_ControlGeneralSettingFile
- param1
Result&Response
CrWarningExtParam_ControlGeneralSettingFile_Invalid
CrWarningExtParam_ControlGeneralSettingFile_OK
CrWarningExtParam_ControlGeneralSettingFile_NG_FileError
CrWarningExtParam_ControlGeneralSettingFile_NG_StateError
CrWarningExtParam_ControlGeneralSettingFile_NG_OtherError
CrWarningExtParam_ControlGeneralSettingFile_Canceled
CrWarningExtParam_ControlGeneralSettingFile_DeviceBusy
CrWarningExtParam_ControlGeneralSettingFile_StoreFull
CrWarningExtParam_ControlGeneralSettingFile_CantOpen
CrWarningExtParam_ControlGeneralSettingFile_CantRead
- param2
Control Type
Explanation
CrGeneralSettingControlType
Selected control type.
RequestControlGeneralSettingResultFile callback¶
- warning code
CrWarningExt_RequestControlGeneralSettingResultFile
- param1
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error
- param2
Control Type
Explanation
CrGeneralSettingControlType
Selected control type.
RequestOperation callback¶
- warning code
CrWarningExt_RequestOperation
- param1
Operation code
Explanation
CrOperationCode
Executed operation code.
- param2
Response code
Explanation
CrError_None
No error
other
Error, see Status code & Error