# FormatCallback ## **Overview** **Related Modules:** [Format](format.md) **Description:** Defines listener callbacks for the format. ## **Summary** ## Data Fields
OnError )(CALLBACK_HANDLE privateDataHandle, int32_t errorType, int32_t errorCode) |
Called when a format error occurs during capturing. This callback is used to report the errors. |
OnInfo )(CALLBACK_HANDLE privateDataHandle, int32_t type, int32_t extra) |
Called when an information event occurs during capturing. This callback is used to report capturing information. |
| privateDataHandle | Indicates the private data handle. |
| errorType | Indicates the error type. For details, see FormatErrorType. |
| errorCode | Indicates the error code. |
| privateDataHandle | Indicates the private data handle. |
| type | Indicates the information type. For details, see FormatInfoType. |
| extra | Indicates other information, for example, the start time position of the captured file. |