Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 public: | 33 public: |
| 34 std::string GetKeySystemName() const override { | 34 std::string GetKeySystemName() const override { |
| 35 return media::kChromecastPlayreadyKeySystem; | 35 return media::kChromecastPlayreadyKeySystem; |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool IsSupportedInitDataType(EmeInitDataType init_data_type) const override { | 38 bool IsSupportedInitDataType(EmeInitDataType init_data_type) const override { |
| 39 return init_data_type == EmeInitDataType::CENC; | 39 return init_data_type == EmeInitDataType::CENC; |
| 40 } | 40 } |
| 41 | 41 |
| 42 SupportedCodecs GetSupportedCodecs() const override { | 42 SupportedCodecs GetSupportedCodecs() const override { |
| 43 return ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1; | 43 return ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1 | |
| 44 ::media::EME_CODEC_MP4_HEVC; | |
|
ddorwin
2016/05/19 21:32:13
I know this is the default state for Cast in Chrom
servolk
2016/05/20 23:00:19
Done.
| |
| 44 } | 45 } |
| 45 | 46 |
| 46 EmeConfigRule GetRobustnessConfigRule( | 47 EmeConfigRule GetRobustnessConfigRule( |
| 47 EmeMediaType media_type, | 48 EmeMediaType media_type, |
| 48 const std::string& requested_robustness) const override { | 49 const std::string& requested_robustness) const override { |
| 49 return requested_robustness.empty() ? EmeConfigRule::SUPPORTED | 50 return requested_robustness.empty() ? EmeConfigRule::SUPPORTED |
| 50 : EmeConfigRule::NOT_SUPPORTED; | 51 : EmeConfigRule::NOT_SUPPORTED; |
| 51 } | 52 } |
| 52 | 53 |
| 53 EmeSessionTypeSupport GetPersistentLicenseSessionSupport() const override { | 54 EmeSessionTypeSupport GetPersistentLicenseSessionSupport() const override { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-license. | 96 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-license. |
| 96 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-release-message. | 97 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-release-message. |
| 97 // Note: On Chromecast, all CDMs may have persistent state. | 98 // Note: On Chromecast, all CDMs may have persistent state. |
| 98 EmeFeatureSupport::ALWAYS_ENABLED, // Persistent state. | 99 EmeFeatureSupport::ALWAYS_ENABLED, // Persistent state. |
| 99 EmeFeatureSupport::ALWAYS_ENABLED)); // Distinctive identifier. | 100 EmeFeatureSupport::ALWAYS_ENABLED)); // Distinctive identifier. |
| 100 #endif // defined(WIDEVINE_CDM_AVAILABLE) | 101 #endif // defined(WIDEVINE_CDM_AVAILABLE) |
| 101 } | 102 } |
| 102 | 103 |
| 103 } // namespace shell | 104 } // namespace shell |
| 104 } // namespace chromecast | 105 } // namespace chromecast |
| OLD | NEW |