| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/renderer/key_systems_cast.h" | 5 #include "chromecast/renderer/key_systems_cast.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const std::string& key_system_name, | 25 const std::string& key_system_name, |
| 26 std::vector<::media::KeySystemInfo>* key_systems_info) { | 26 std::vector<::media::KeySystemInfo>* key_systems_info) { |
| 27 ::media::KeySystemInfo info; | 27 ::media::KeySystemInfo info; |
| 28 info.key_system = key_system_name; | 28 info.key_system = key_system_name; |
| 29 info.supported_init_data_types = ::media::kInitDataTypeMaskCenc; | 29 info.supported_init_data_types = ::media::kInitDataTypeMaskCenc; |
| 30 info.supported_codecs = | 30 info.supported_codecs = |
| 31 ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1; | 31 ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1; |
| 32 info.max_audio_robustness = ::media::EmeRobustness::EMPTY; | 32 info.max_audio_robustness = ::media::EmeRobustness::EMPTY; |
| 33 info.max_video_robustness = ::media::EmeRobustness::EMPTY; | 33 info.max_video_robustness = ::media::EmeRobustness::EMPTY; |
| 34 info.persistent_license_support = | 34 info.persistent_license_support = |
| 35 ::media::EmeSessionTypeSupport::NOT_SUPPORTED; | 35 ::media::EmeSessionTypeSupport::SUPPORTED; |
| 36 info.persistent_release_message_support = | 36 info.persistent_release_message_support = |
| 37 ::media::EmeSessionTypeSupport::NOT_SUPPORTED; | 37 ::media::EmeSessionTypeSupport::NOT_SUPPORTED; |
| 38 info.persistent_state_support = ::media::EmeFeatureSupport::ALWAYS_ENABLED; | 38 info.persistent_state_support = ::media::EmeFeatureSupport::ALWAYS_ENABLED; |
| 39 info.distinctive_identifier_support = | 39 info.distinctive_identifier_support = |
| 40 ::media::EmeFeatureSupport::ALWAYS_ENABLED; | 40 ::media::EmeFeatureSupport::ALWAYS_ENABLED; |
| 41 key_systems_info->push_back(info); | 41 key_systems_info->push_back(info); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void AddChromecastKeySystems( | 44 void AddChromecastKeySystems( |
| 45 std::vector<::media::KeySystemInfo>* key_systems_info) { | 45 std::vector<::media::KeySystemInfo>* key_systems_info) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 63 #endif // defined(WIDEVINE_CDM_AVAILABLE) | 63 #endif // defined(WIDEVINE_CDM_AVAILABLE) |
| 64 | 64 |
| 65 #if defined(PLAYREADY_CDM_AVAILABLE) | 65 #if defined(PLAYREADY_CDM_AVAILABLE) |
| 66 AddKeySystemWithCodecs(media::kChromecastPlayreadyKeySystem, | 66 AddKeySystemWithCodecs(media::kChromecastPlayreadyKeySystem, |
| 67 key_systems_info); | 67 key_systems_info); |
| 68 #endif // defined(PLAYREADY_CDM_AVAILABLE) | 68 #endif // defined(PLAYREADY_CDM_AVAILABLE) |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace shell | 71 } // namespace shell |
| 72 } // namespace chromecast | 72 } // namespace chromecast |
| OLD | NEW |