Quellcode-Bibliothek WMFClearKeyCDMFactory.cpp
Sprache: C
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
STDMETHODIMP_(BOOL)
WMFClearKeyCDMFactory::IsTypeSupported(_In_ LPCWSTR aKeySystem,
_In_opt_ LPCWSTR aContentType) { // For testing, return support for most of cases. Only returns false for some // special cases.
// As the API design of the Media Foundation, we can only know whether the // requester is asking for HDCP 2.2+ or not, we can't know the exact HDCP // version which is used in getStatusPolicy web api. Therefore, we pretend // ourselves only having HDCP 2.1 compliant. if (needHDCP22OrAbove) { returnfalse;
} returntrue;
}
STDMETHODIMP
WMFClearKeyCDMFactory::CreateContentDecryptionModuleAccess(
LPCWSTR aKeySystem, IPropertyStore** aConfigurations,
DWORD aNumConfigurations, IMFContentDecryptionModuleAccess** aCdmAccess) {
ENTRY_LOG(); if (aKeySystem == nullptr || aKeySystem[0] == L'\0') {
ENTRY_LOG_ARGS("Key system is null or empty"); return MF_TYPE_ERR;
}
if (aNumConfigurations == 0) {
ENTRY_LOG_ARGS("No available configration"); return MF_TYPE_ERR;
}
if (!IsTypeSupported(aKeySystem, nullptr)) {
ENTRY_LOG_ARGS("Not supported type"); return MF_NOT_SUPPORTED_ERR;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.34Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.