Skip to content

Commit

Permalink
fix: Do not check compatibility if MCap configuration is not compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 29, 2025
1 parent bfb6deb commit 611fd9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ class McEncryptionSchemePolyfill {
await McEncryptionSchemePolyfill.originalDecodingInfo_.call(
this, requestedConfiguration);

// If the config is not supported, we don't need to try anything else.
if (!capabilities.supported) {
return capabilities;
}

if (!requestedConfiguration.keySystemConfiguration) {
// This was not a query regarding encrypted content. The results are
// valid, but won't tell us anything about native support for
Expand Down

0 comments on commit 611fd9b

Please sign in to comment.