w3c / encrypted-media

Encrypted Media Extensions
https://w3c.github.io/encrypted-media/
Other
180 stars 80 forks source link

supportedConfigurations is required in requestMediaKeySystemAccess() #529

Closed chrisn closed 4 months ago

chrisn commented 5 months ago

The spec for requestMediaKeySystemAccess() says:

When supportedConfigurations is specified, the configuration specified by at least one of its elements must be supported. The resulting MediaKeySystemAccess will correspond to the first such element.

This implies that supportedConfigurations is optional, but this parameter is required.

joeyparrish commented 4 months ago

I'm going to guess that this is the result of changes to the spec over time, and that it was a change that was inconsistently made. The algorithms require that supportedConfigurations be non-empty, and the parameter is required in IDL, so I'm going to just remove all references to "if" or "when" supportedConfigurations is provided.