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

Unified Diff: webrtc/api/android/java/src/org/webrtc/VideoSource.java

Issue 2106333005: Revert of Combine webrtc/api/java/android and webrtc/api/java/src. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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: webrtc/api/android/java/src/org/webrtc/VideoSource.java
diff --git a/webrtc/api/android/java/src/org/webrtc/VideoSource.java b/webrtc/api/android/java/src/org/webrtc/VideoSource.java
deleted file mode 100644
index 3864ccbb40cc67d6a201b4c59b6f9cd2bb215d45..0000000000000000000000000000000000000000
--- a/webrtc/api/android/java/src/org/webrtc/VideoSource.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2013 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-
-package org.webrtc;
-
-/**
- * Java version of VideoSourceInterface, extended with stop/restart
- * functionality to allow explicit control of the camera device on android,
- * where there is no support for multiple open capture devices and the cost of
- * holding a camera open (even if MediaStreamTrack.setEnabled(false) is muting
- * its output to the encoder) can be too high to bear.
- */
-public class VideoSource extends MediaSource {
-
- public VideoSource(long nativeSource) {
- super(nativeSource);
- }
-
- // Stop capture feeding this source.
- public void stop() {
- stop(nativeSource);
- }
-
- // Restart capture feeding this source. stop() must have been called since
- // the last call to restart() (if any). Note that this isn't "start()";
- // sources are started by default at birth.
- public void restart() {
- restart(nativeSource);
- }
-
- @Override
- public void dispose() {
- super.dispose();
- }
-
- private static native void stop(long nativeSource);
- private static native void restart(long nativeSource);
-}
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/VideoRendererGui.java ('k') | webrtc/api/android/java/src/org/webrtc/VideoTrack.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698