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

Unified Diff: chromecast/media/base/cast_media_default.cc

Issue 2156193003: [Chromecast] Add a custom CastMediaClient for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codecs
Patch Set: Mark MediaCapShlib::IsSupportedVideoConfig as weak symbol Created 4 years, 5 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/media/base/cast_media_default.cc
diff --git a/chromecast/media/base/cast_media_default.cc b/chromecast/media/base/cast_media_default.cc
index aee86887330c1fe24d55bada1ee31a10485e962b..3193dbbd8d07a212f8a0d6099fecb3defbd6e012 100644
--- a/chromecast/media/base/cast_media_default.cc
+++ b/chromecast/media/base/cast_media_default.cc
@@ -105,5 +105,14 @@ bool CastMediaShlib::SupportsMediaClockRateChange() {
return false;
}
+// static
+bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
+ VideoProfile profile,
+ int level) {
+ if (codec == kCodecH264 || codec == kCodecVP8)
+ return true;
+ return false;
+}
+
} // namespace media
} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698