rx-player
rx-player copied to clipboard
fix(compat): on Edge test comprehensively KeySystems before considering them as usable
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 withgenerateRequest
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.