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

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

Issue 2809013002: EME contentType checks DolbyVision (Closed)
Patch Set: More guard 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
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;
chcunningham 2017/04/17 16:14:24 Its not easy for me to verify playready supports t
yucliu1 2017/04/18 00:13:02 I'll verify this soon. Chromecast Ultra supports D
yucliu1 2017/04/19 04:34:25 I can verify the reqestMediaKeySystemAccess return
+#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;
chcunningham 2017/04/17 16:14:24 Ditto here. I'm not sure how to verify Widevine ac
yucliu1 2017/04/18 00:13:01 I have tried some DV codecs with Widevine on Chrom
+#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.

Powered by Google App Engine
This is Rietveld 408576698