What is the best way to recover from PLAYBACK_VIDEO_DECODING_ERROR (1301)?

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 ?