mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
Bug 1928183 - part1 : add 'isHardwareDecryption' on CDMInformation. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D227895
This commit is contained in:
parent
ef73dc056f
commit
d09dca3aca
@ -1164,4 +1164,5 @@ dictionary CDMInformation {
|
||||
required DOMString capabilities;
|
||||
required boolean clearlead;
|
||||
required boolean isHDCP22Compatible;
|
||||
required boolean isHardwareDecryption;
|
||||
};
|
||||
|
@ -313,8 +313,10 @@ void KeySystemConfig::GetGMPKeySystemConfigs(dom::Promise* aPromise) {
|
||||
info->mKeySystemName = config.mKeySystem;
|
||||
info->mCapabilities = config.GetDebugInfo();
|
||||
info->mClearlead = DoesKeySystemSupportClearLead(config.mKeySystem);
|
||||
// TODO : ask real CDM
|
||||
// TODO : ask real CDM for HDCP
|
||||
info->mIsHDCP22Compatible = false;
|
||||
// GMP-based CDM doesn't support hardware decryption.
|
||||
info->mIsHardwareDecryption = false;
|
||||
}
|
||||
promise->MaybeResolve(cdmInfo);
|
||||
} else {
|
||||
|
@ -257,6 +257,9 @@ void UtilityAudioDecoderChild::GetKeySystemCapabilities(
|
||||
if (capabilities.isHDCP22Compatible()) {
|
||||
info->mIsHDCP22Compatible = *capabilities.isHDCP22Compatible();
|
||||
}
|
||||
if (capabilities.isHardwareDecryption()) {
|
||||
info->mIsHardwareDecryption = true;
|
||||
}
|
||||
}
|
||||
promise->MaybeResolve(cdmInfo);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user