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

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

Issue 2156193003: [Chromecast] Add a custom CastMediaClient for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codecs
Patch Set: Move #define MEDIA_IMPLEMENTATION to .cc file 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_dummy.cc
diff --git a/chromecast/media/base/cast_media_dummy.cc b/chromecast/media/base/cast_media_dummy.cc
index 3060672b7285289a94fa7f3b5127dc1bdcfde4e8..8d3d80b7d1310b96fb194f21e1cbed710c53866d 100644
--- a/chromecast/media/base/cast_media_dummy.cc
+++ b/chromecast/media/base/cast_media_dummy.cc
@@ -28,6 +28,14 @@ MediaCodecSupportShlib::CodecSupport MediaCodecSupportShlib::IsSupported(
return kDefault;
}
+bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
+ VideoProfile profile,
+ int level) {
+ if (codec == kCodecH264 || codec == kCodecVP8)
+ return true;
+ return false;
+}
+
double CastMediaShlib::GetMediaClockRate() {
return 0.0;
}

Powered by Google App Engine
This is Rietveld 408576698