| Index: webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| diff --git a/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java b/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| index 8e3e11d9b93b8bdb0fcec74a77e9110f1ce0dead..beb021fe8e7859c468cdfba3cb14432ea0da8eef 100644
|
| --- a/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| +++ b/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| @@ -125,7 +125,8 @@ public class PeerConnectionFactory {
|
| public VideoSource createVideoSource(VideoCapturer capturer) {
|
| final EglBase.Context eglContext =
|
| localEglbase == null ? null : localEglbase.getEglBaseContext();
|
| - long nativeAndroidVideoTrackSource = nativeCreateVideoSource2(nativeFactory, eglContext);
|
| + long nativeAndroidVideoTrackSource = nativeCreateVideoSource2(
|
| + nativeFactory, eglContext, capturer.isScreencast());
|
| VideoCapturer.CapturerObserver capturerObserver
|
| = new VideoCapturer.AndroidVideoTrackSourceObserver(nativeAndroidVideoTrackSource);
|
| nativeInitializeVideoCapturer(nativeFactory, capturer, nativeAndroidVideoTrackSource,
|
| @@ -252,7 +253,7 @@ public class PeerConnectionFactory {
|
| MediaConstraints constraints);
|
|
|
| private static native long nativeCreateVideoSource2(
|
| - 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,
|
|
|