rx-player icon indicating copy to clipboard operation
rx-player copied to clipboard

fix(compat): on Edge test comprehensively KeySystems before considering them as usable

Open Florent-Bouisset opened this issue 9 months ago • 0 comments

We observed that the RxPlayer cannot trust the browser when it has successfully granted the MediaKeySystemAccess with navigator.requestMediaKeySystemAccess(keySystem) function, and it should do some additional testing to confirm that the keySystem is supported on the device.

This behavior has been experienced on the following device:

On a Microsoft Surface with Edge v.124:

  • Althought requestMediaKeySystemAccess resolve correctly with the keySystem "com.microsoft.playready.recommendation.3000", generating a request with generateRequest throws an error: "NotSupportedError: Failed to execute 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession". In this particular case, the work-around was to consider recommendation.3000 as not supported and try another keySystem.

Florent-Bouisset avatar Apr 29 '24 12:04 Florent-Bouisset