Merge pull request #837 from superjohan:fix/android-14-clearkey

PiperOrigin-RevId: 585639025
This commit is contained in:
Copybara-Service 2023-11-27 06:56:45 -08:00
commit 5f27b18210
2 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,9 @@
* Text:
* Metadata:
* DRM:
* Extend workaround for spurious ClearKey `https://default.url` license
URL to API 33+ (previously the workaround only applied on API 33
exactly) ([#837](https://github.com/androidx/media/pull/837)).
* Effect:
* Muxers:
* IMA extension:

View File

@ -246,7 +246,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm {
private static String adjustLicenseServerUrl(String licenseServerUrl) {
if (MOCK_LA_URL.equals(licenseServerUrl)) {
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
return "";
} else {