am b920034e: Add Yet More Backwards-Compatibility
* commit 'b920034e3be73eb010a349115cf25ca2a4ef83a7': Add Yet More Backwards-Compatibility
This commit is contained in:
@@ -151,19 +151,11 @@ status_t WVDrmPlugin::getKeyRequest(
|
||||
|
||||
string cdmMimeType = mimeType.string();
|
||||
|
||||
// Provide backwards-compatibility for versions of apps that pass the wrong
|
||||
// MIME type.
|
||||
// TODO(b/13731637) - Remove this.
|
||||
if (cdmMimeType == "") {
|
||||
ALOGW("ALERT: Empty MIME type is supported for backwards-compatibility "
|
||||
"only and may go away in the future. Switch to \"video/mp4\" to "
|
||||
"become compliant.");
|
||||
cdmMimeType = "video/mp4";
|
||||
} else if (cdmMimeType == "video/avc") {
|
||||
ALOGW("ALERT: MIME type \"video/avc\" is supported for backwards-"
|
||||
"compatibility only and may go away in the future. Switch to "
|
||||
"\"video/mp4\" to become compliant.");
|
||||
cdmMimeType = "video/mp4";
|
||||
// Provide backwards-compatibility for apps that pass non-EME-compatible MIME
|
||||
// types.
|
||||
if (cdmMimeType != wvcdm::ISO_BMFF_MIME_TYPE &&
|
||||
cdmMimeType != wvcdm::WEBM_MIME_TYPE) {
|
||||
cdmMimeType = wvcdm::ISO_BMFF_MIME_TYPE;
|
||||
}
|
||||
|
||||
CdmInitData processedInitData;
|
||||
|
||||
Reference in New Issue
Block a user