Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: chromecast/renderer/key_systems_cast.cc

Issue 1909313002: Support HEVC through EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated cdm_message_filter_android.cc Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/cdm/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/cdm/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698