Index: android_webview/renderer/aw_key_systems.cc |
diff --git a/android_webview/renderer/aw_key_systems.cc b/android_webview/renderer/aw_key_systems.cc |
index ec976f0cc4924d151eabf07fb9daf03334ef6d92..b276c88f5a4596fb222f8936d769ae355dfd79c3 100644 |
--- a/android_webview/renderer/aw_key_systems.cc |
+++ b/android_webview/renderer/aw_key_systems.cc |
@@ -8,18 +8,13 @@ |
#include "base/command_line.h" |
#include "base/logging.h" |
+#include "content/public/common/eme_codec.h" |
#include "third_party/widevine/cdm/widevine_cdm_common.h" |
using content::KeySystemInfo; |
namespace { |
-const char kAudioMp4[] = "audio/mp4"; |
-const char kVideoMp4[] = "video/mp4"; |
-const char kMp4a[] = "mp4a"; |
-const char kAvc1[] = "avc1"; |
-const char kAvc3[] = "avc3"; |
- |
// Return |name|'s parent key system. |
std::string GetDirectParentName(const std::string& name) { |
int last_period = name.find_last_of('.'); |
@@ -35,10 +30,7 @@ void AddWidevineWithCodecs(const std::string& key_system_name, |
if (add_parent_name) |
info.parent_key_system = GetDirectParentName(key_system_name); |
- info.supported_types[kAudioMp4].insert(kMp4a); |
- info.supported_types[kVideoMp4] = info.supported_types[kAudioMp4]; |
- info.supported_types[kVideoMp4].insert(kAvc1); |
- info.supported_types[kVideoMp4].insert(kAvc3); |
+ info.supported_codecs = content::EME_CODEC_MP4_ALL; |
concrete_key_systems->push_back(info); |
} |