Implement isCryptoSchemeSupported in the Widevine drm plugin

Support overloaded isCryptoSchemeSupported method that
accepts a security level parameter

bug:110701831
test: cts media test cases, widevine integration tests, gts media tests

Change-Id: Ia84e40ff8d4f13fc06478e338e3238061e283dac
This commit is contained in:
Jeff Tinker
2019-01-25 22:06:22 -08:00
parent 54104c7a22
commit 8084bd5375
5 changed files with 27 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ InitializationData::InitializationData(const std::string& type,
is_cenc_(false),
is_hls_(false),
is_webm_(false),
is_audio_(false),
hls_method_(kHlsMethodNone) {
if (type == ISO_BMFF_VIDEO_MIME_TYPE || type == ISO_BMFF_AUDIO_MIME_TYPE ||
type == CENC_INIT_DATA_FORMAT) {
@@ -65,6 +66,9 @@ InitializationData::InitializationData(const std::string& type,
} else if (type == HLS_INIT_DATA_FORMAT) {
is_hls_ = true;
}
if (type == ISO_BMFF_AUDIO_MIME_TYPE || type == WEBM_AUDIO_MIME_TYPE) {
is_audio_ = true;
}
if (data.size() && is_supported()) {
if (is_cenc()) {