Apply workaround for Android 13 and newer

At least some Android 14 devices still have the same invalid URL issue
when using ClearKey DRM, so might as well apply the check to newer
versions of Android as well.
This commit is contained in:
Johan Halin 2023-11-24 12:15:46 +02:00 committed by Ian Baker
parent ad40db4489
commit ad7b12e56f

View File

@ -246,7 +246,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm {
private static String adjustLicenseServerUrl(String licenseServerUrl) { private static String adjustLicenseServerUrl(String licenseServerUrl) {
if (MOCK_LA_URL.equals(licenseServerUrl)) { if (MOCK_LA_URL.equals(licenseServerUrl)) {
return ""; return "";
} else if (Util.SDK_INT == 33 && "https://default.url".equals(licenseServerUrl)) { } else if (Util.SDK_INT >= 33 && "https://default.url".equals(licenseServerUrl)) {
// Work around b/247808112 // Work around b/247808112
return ""; return "";
} else { } else {