[AVPlayer] cant play Mpd file with playready DRM

In our backend setup, to acquire the license key, we need to pass a custom header (base64 string) along with the license XHR request. We tried setting the base64 header value in drmParam.HttpHeader as a JSON string using JSON.stringify(), but it’s not working as expected. It throws UNKNOWN_error while attempting to setDrm as mentioned below.

webapis.avplay.setDrm(“PLAYREADY”, “SetProperties”, JSON.stringify(drmParam)).

We are not sure if the error is thrown due to the wrong assignment of HTTP header or something else like unsupported Playready version (3.0). Please confirm.

If the header assignment is wrong, please share a working example.

Did you get any solution for this?