# What is the best way to recover from PLAYBACK\_VIDEO\_DECODING\_ERROR (1301)?

**URL:** <https://community.bitmovin.com/t/what-is-the-best-way-to-recover-from-playback-video-decoding-error-1301/638>\
**Category:** Support\
**Tags:** bitmovin-player, web, error, decoding, recovery\
**Created:** [April 7, 2022, 4:01pm UTC](https://community.bitmovin.com/t/what-is-the-best-way-to-recover-from-playback-video-decoding-error-1301/638 "2022-04-07T16:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [April 7, 2022, 4:01pm UTC](https://community.bitmovin.com/t/what-is-the-best-way-to-recover-from-playback-video-decoding-error-1301/638/1 "2022-04-07T16:01:09Z")

</div>

Usually these errors happen because the Decoder fails to handle the stream properly.  
What would be a good way to have the web player recover automatically from those ?

- Reload the stream and start playback at eg. previous time + 1s upon detection of the error code ?
- Any better idea ?

Is there a way to make the player more resilient to these kinds of errors ?

---

<div class="post-metadata">

**Author:** ![kazuhide](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/kazuhide/32/263_2.png) [@kazuhide](https://community.bitmovin.com/u/kazuhide)\
**Post date:** [September 30, 2022, 1:44am UTC](https://community.bitmovin.com/t/what-is-the-best-way-to-recover-from-playback-video-decoding-error-1301/638/2 "2022-09-30T01:44:04Z")

</div>

Our web player doesn’t have such automatic recovery logic from a decoding error. We treat it as a device’s native decoder error or a browser’s MSE error, and leave the error handling decision to the application side.

On application side, reloading the same stream starting from the previous failed position (or +1s) can be one good option. If the errored rendition/bitrate information is clear, we can try to retry while excluding the failed rendition by having a custom adaptation logic using [onVideoAdaptation](https://cdn.bitmovin.com/player/web/8/docs/interfaces/core_config.adaptationconfig.html#onvideoadaptation) or [onAudioAdaptation](https://cdn.bitmovin.com/player/web/8/docs/interfaces/core_config.adaptationconfig.html#onaudioadaptation).

Other useful debug options are also written in our error code documentation page so hope it helps. [PLAYBACK\_VIDEO\_DECODING\_ERROR: 1301](https://cdn.bitmovin.com/player/web/8/docs/enums/Core.ErrorCode.html#PLAYBACK_VIDEO_DECODING_ERROR)

---

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [December 1, 2022, 8:03pm UTC](https://community.bitmovin.com/t/what-is-the-best-way-to-recover-from-playback-video-decoding-error-1301/638/3 "2022-12-01T20:03:08Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
