Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/media/chrome_key_systems.h" | 5 #include "chrome/renderer/media/chrome_key_systems.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 // TODO(sandersd): Distinguish these from those that are directly supported, | 177 // TODO(sandersd): Distinguish these from those that are directly supported, |
| 178 // as those may offer a higher level of protection. | 178 // as those may offer a higher level of protection. |
| 179 supported_codecs |= media::EME_CODEC_WEBM_OPUS; | 179 supported_codecs |= media::EME_CODEC_WEBM_OPUS; |
| 180 supported_codecs |= media::EME_CODEC_WEBM_VORBIS; | 180 supported_codecs |= media::EME_CODEC_WEBM_VORBIS; |
| 181 #if defined(USE_PROPRIETARY_CODECS) | 181 #if defined(USE_PROPRIETARY_CODECS) |
| 182 supported_codecs |= media::EME_CODEC_MP4_AAC; | 182 supported_codecs |= media::EME_CODEC_MP4_AAC; |
| 183 #endif // defined(USE_PROPRIETARY_CODECS) | 183 #endif // defined(USE_PROPRIETARY_CODECS) |
| 184 | 184 |
| 185 for (size_t i = 0; i < codecs.size(); ++i) { | 185 for (size_t i = 0; i < codecs.size(); ++i) { |
| 186 if (codecs[i] == kCdmSupportedCodecVp8) | 186 if (codecs[i] == kCdmSupportedCodecVp8) |
| 187 supported_codecs |= media::EME_CODEC_WEBM_VP8; | 187 supported_codecs |= media::EME_CODEC_WEBM_VP8 | media::EME_CODEC_MP4_VP8; |
|
sandersd (OOO until July 31)
2016/01/26 21:21:20
If we are going with leaving MP4 as requiring prop
kqyang
2016/01/27 00:17:42
Done.
| |
| 188 if (codecs[i] == kCdmSupportedCodecVp9) | 188 if (codecs[i] == kCdmSupportedCodecVp9) |
| 189 supported_codecs |= media::EME_CODEC_WEBM_VP9; | 189 supported_codecs |= media::EME_CODEC_WEBM_VP9 | media::EME_CODEC_MP4_VP9; |
| 190 #if defined(USE_PROPRIETARY_CODECS) | 190 #if defined(USE_PROPRIETARY_CODECS) |
| 191 if (codecs[i] == kCdmSupportedCodecAvc1) | 191 if (codecs[i] == kCdmSupportedCodecAvc1) |
| 192 supported_codecs |= media::EME_CODEC_MP4_AVC1; | 192 supported_codecs |= media::EME_CODEC_MP4_AVC1; |
| 193 #endif // defined(USE_PROPRIETARY_CODECS) | 193 #endif // defined(USE_PROPRIETARY_CODECS) |
| 194 } | 194 } |
| 195 | 195 |
| 196 cdm::AddWidevineWithCodecs( | 196 cdm::AddWidevineWithCodecs( |
| 197 cdm::WIDEVINE, supported_codecs, | 197 cdm::WIDEVINE, supported_codecs, |
| 198 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
| 199 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness. | 199 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness. |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 224 | 224 |
| 225 #if defined(WIDEVINE_CDM_AVAILABLE) | 225 #if defined(WIDEVINE_CDM_AVAILABLE) |
| 226 AddPepperBasedWidevine(key_systems_info); | 226 AddPepperBasedWidevine(key_systems_info); |
| 227 #endif // defined(WIDEVINE_CDM_AVAILABLE) | 227 #endif // defined(WIDEVINE_CDM_AVAILABLE) |
| 228 #endif // defined(ENABLE_PEPPER_CDMS) | 228 #endif // defined(ENABLE_PEPPER_CDMS) |
| 229 | 229 |
| 230 #if defined(OS_ANDROID) | 230 #if defined(OS_ANDROID) |
| 231 cdm::AddAndroidWidevine(key_systems_info); | 231 cdm::AddAndroidWidevine(key_systems_info); |
| 232 #endif // defined(OS_ANDROID) | 232 #endif // defined(OS_ANDROID) |
| 233 } | 233 } |
| OLD | NEW |