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

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

Issue 2508803012: [Chromecast] Android-specific cast_media implementation. (Closed)
Patch Set: Created 4 years, 1 month 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 | « chromecast/media/base/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/cast_media_android.cc
diff --git a/chromecast/media/base/cast_media_android.cc b/chromecast/media/base/cast_media_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2bd2ff2a2622b8ec202f7d764ce02b91777d4c57
--- /dev/null
+++ b/chromecast/media/base/cast_media_android.cc
@@ -0,0 +1,61 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/logging.h"
+#include "chromecast/public/cast_media_shlib.h"
+#include "chromecast/public/media/media_capabilities_shlib.h"
+#include "chromecast/public/media_codec_support_shlib.h"
+
+namespace chromecast {
+namespace media {
+
+void CastMediaShlib::Initialize(const std::vector<std::string>& argv) {
+}
+
+void CastMediaShlib::Finalize() {
+}
+
+VideoPlane* CastMediaShlib::GetVideoPlane() {
+ return nullptr;
+}
+
+MediaPipelineBackend* CastMediaShlib::CreateMediaPipelineBackend(
+ const MediaPipelineDeviceParams& params) {
+ return nullptr;
+}
+
+MediaCodecSupportShlib::CodecSupport MediaCodecSupportShlib::IsSupported(
+ const std::string& codec) {
+ return kDefault;
+}
+
+double CastMediaShlib::GetMediaClockRate() {
+ return 0.0;
+}
+
+double CastMediaShlib::MediaClockRatePrecision() {
+ return 0.0;
+}
+
+void CastMediaShlib::MediaClockRateRange(double* minimum_rate,
+ double* maximum_rate) {}
+
+bool CastMediaShlib::SetMediaClockRate(double new_rate) {
+ return false;
+}
+
+bool CastMediaShlib::SupportsMediaClockRateChange() {
+ return false;
+}
+
+bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
+ VideoProfile profile,
+ int level) {
+ // TODO(sanfin): implement this.
+ LOG(INFO) << "sanfin: IsSupportedVideoConfig not supported, returning true";
+ return true;
+}
+
+} // namespace media
+} // namespace chromecast
« no previous file with comments | « chromecast/media/base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698