1# Multimedia Subsystem Changelog 2 3## cl.multimedia.1 AVErrorCode Enumerated Value Changed 4 5**Access Level** 6 7Public API 8 9**Reason for Change** 10 11The player reports only one IO error code. To help developers better understand the cause of the playback failure, IO-related errors are refined. 12 13**Change Impact** 14 15This change is a non-compatible change. 16 17Before change: The application maintains the same rule for reporting error codes when using the involved APIs, and any API that encounters IO errors will return the values they originally had. 18 19After change: Upon encountering IO-related network errors, the playback framework provides more detailed error codes. As a result, the return values for APIs that encounter IO errors will differ, and you need to adapt to the new error code reporting rules. 20| API | Before Change | After Change | 21| :--------------------------------------------------: | :------------------------------: | :---------------------------: | 22| AVPlayer.on(type: 'error', callback: ErrorCallback) | AVERR_IO = 5400103 | In the network scenario, the original error code is deprecated, and the error codes 5411001 to 5411011 are used. The error codes in other scenarios remain unchanged. | 23| void (*OH_AVPlayerOnErrorCallback)(OH_AVPlayer *player, int32_t errorCode, const char *errorMsg) | AV_ERR_IO = 4 | In the network scenario, the original error code is deprecated, and the error codes 5411001 to 5411011 are used. The error codes in other scenarios remain unchanged. | 24 25**Start API Level** 26 279 28 29**Change Since** 30 31OpenHarmony SDK 5.0.0.52 32 33**Key API/Component Changes** 34 351. API in [@ohos.multimedia.media.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.multimedia.media.d.ts): 36AVPlayer.on(type: 'error', callback: ErrorCallback) 37 382. API in [avplayer_base.h](https://gitee.com/openharmony/interface_sdk_c/blob/master/multimedia/player_framework/avplayer_base.h): 39void (*OH_AVPlayerOnErrorCallback)(OH_AVPlayer *player, int32_t errorCode, const char *errorMsg) 40 41**Adaptation Guide** 42 43Add error codes 5411001 to 5411011 in your code to listen for IO-related errors. 44 45For details, see [Media Error Codes](../../../application-dev/reference/apis-media-kit/errorcode-media.md). 46