Skip to content

Commit 5245bc3

Browse files
authored
fix: Bail out on other decodingInfos when we found a preferred and supported one. (#8829)
Pick a multi DRM asset, set `preferredKeySystems` to prefer PlayReady over Widevine and run on a device that does not support PlayReady (eg; Chrome). A `REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE` is thrown. This is due to the logic in `getDecodingInfosForVariants` where we bail out on probing other decodingInfos when we found a prefered one, but we didn't check whether it was supported or not. As a result, Widevine was never checked and PlayReady was left marked as unsupported.
1 parent fd7ee12 commit 5245bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/stream_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ shaka.util.StreamUtils = class {
742742
await shaka.util.StreamUtils.getDecodingInfosForVariant_(
743743
variant, configs);
744744
}
745-
if (variant.decodingInfos.length) {
745+
if (variant.decodingInfos.some((d) => d.supported)) {
746746
keySystemSatisfied = true;
747747
}
748748
} // for (const variant of variants)

0 commit comments

Comments
 (0)