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

Unified Diff: chromecast/renderer/media/key_systems_cast.cc

Issue 2809013002: EME contentType checks DolbyVision (Closed)
Patch Set: Typo Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cdm/browser/cdm_message_filter_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/key_systems_cast.cc
diff --git a/chromecast/renderer/media/key_systems_cast.cc b/chromecast/renderer/media/key_systems_cast.cc
index 1e297151fd06ad7a88211ba6ce294a8289b87e62..df31180a67cac149915b17371da4fa42df1eee66 100644
--- a/chromecast/renderer/media/key_systems_cast.cc
+++ b/chromecast/renderer/media/key_systems_cast.cc
@@ -49,6 +49,12 @@ class PlayReadyKeySystemProperties : public ::media::KeySystemProperties {
#if BUILDFLAG(ENABLE_HEVC_DEMUXING)
codecs |= ::media::EME_CODEC_MP4_HEVC;
#endif
+#if BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING)
+ codecs |= ::media::EME_CODEC_MP4_DV_AVC;
+#if BUILDFLAG(ENABLE_HEVC_DEMUXING)
+ codecs |= ::media::EME_CODEC_MP4_DV_HEVC;
+#endif
+#endif
return codecs;
}
@@ -111,6 +117,12 @@ void AddChromecastKeySystems(
#if BUILDFLAG(ENABLE_HEVC_DEMUXING)
codecs |= ::media::EME_CODEC_MP4_HEVC;
#endif
+#if BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING)
+ codecs |= ::media::EME_CODEC_MP4_DV_AVC;
+#if BUILDFLAG(ENABLE_HEVC_DEMUXING)
+ codecs |= ::media::EME_CODEC_MP4_DV_HEVC;
+#endif
+#endif
key_systems_properties->emplace_back(new cdm::WidevineKeySystemProperties(
codecs, // Regular codecs.
Robustness::HW_SECURE_ALL, // Max audio robustness.
« no previous file with comments | « no previous file | components/cdm/browser/cdm_message_filter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698