# FormatCallback - [Overview](#section2025395648165631) - [Summary](#section1628089547165631) - [Data Fields](#pub-attribs) - [Details](#section516987346165631) - [Field](#section160156636165631) - [OnError](#a47f30ebe4db3087e01c4259c0a983588) - [OnInfo](#a24b3d9a290f39522c4a733d141772cb1) - [privateDataHandle](#a4e4c7c6789cbf8bfc1aa0444dcd106b5) ## **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. |