MEDIA_ERR_DECODE macOS Safari (version 14.0) Fairplay DRM

I am noticing that Safari(14.0 and even older) on macOS (10.15.6 - Catalina), I get an error on the video tag. The error code on the error object is value 3 i.e. MEDIAERRDECODE.

The content is Fairplay DRM protected HLS content. I am not suspecting this is a problem in the Fairplay KSM since the same content works perfectly on Safari on iOS, at the same time, on the same network.

This problem is only affecting Safari on macOS. It has never happened/been observed on Safari iOS. Also sometimes the content works fine on Safari macOS too.
There is no other information other than the error code to figure out what is going on. If anybody has seen such behaviour will appreciate any pointers or insights.

Appended :
Also, when this error occurs, the certificate loading, webkitneedkey, webkitkeymessage and webkitkeyadded events fire successfully. The webkitkeyerror event does not fire. The exchange with the Fairplay KSM happens successfully without any telltale errors etc. However, the error handler on the video tag fires with code 3.



MEDIA_ERR_DECODE macOS Safari (version 14.0) Fairplay DRM
 
 
Q