Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 2276593003: Android Screen Capturer. (Closed) Base URL:
Patch Set: merge master Created 4 years, 4 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/
diff --git a/webrtc/api/android/java/src/org/webrtc/ b/webrtc/api/android/java/src/org/webrtc/
index 860c5a8d6012a44ddf5e69ff76c26d96ebc1f100..e1ee0c04448f950fb668d427aeea623ef2cedde1 100644
--- a/webrtc/api/android/java/src/org/webrtc/
+++ b/webrtc/api/android/java/src/org/webrtc/
@@ -114,7 +114,8 @@ public class PeerConnectionFactory {
public VideoSource createVideoSource(VideoCapturer capturer) {
final EglBase.Context eglContext =
localEglbase == null ? null : localEglbase.getEglBaseContext();
- long nativeAndroidVideoTrackSource = nativeCreateVideoSource(nativeFactory, eglContext);
+ long nativeAndroidVideoTrackSource = nativeCreateVideoSource(
+ nativeFactory, eglContext, capturer.isScreencast());
VideoCapturer.CapturerObserver capturerObserver
= new VideoCapturer.AndroidVideoTrackSourceObserver(nativeAndroidVideoTrackSource);
nativeInitializeVideoCapturer(nativeFactory, capturer, nativeAndroidVideoTrackSource,
@@ -237,7 +238,7 @@ public class PeerConnectionFactory {
long nativeFactory, String label);
private static native long nativeCreateVideoSource(
- long nativeFactory, EglBase.Context eglContext);
+ long nativeFactory, EglBase.Context eglContext, boolean is_screencast);
private static native void nativeInitializeVideoCapturer(
long native_factory, VideoCapturer j_video_capturer, long native_source,

Powered by Google App Engine
This is Rietveld 408576698