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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user