mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #837 from superjohan:fix/android-14-clearkey
PiperOrigin-RevId: 585639025
(cherry picked from commit 5f27b18210)
This commit is contained in:
parent
19ee78729c
commit
db648316ed
2 changed files with 4 additions and 1 deletions
|
|
@ -21,6 +21,9 @@
|
||||||
* Text:
|
* Text:
|
||||||
* Metadata:
|
* Metadata:
|
||||||
* DRM:
|
* 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:
|
* Effect:
|
||||||
* Muxers:
|
* Muxers:
|
||||||
* IMA extension:
|
* IMA extension:
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue