| 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 860c5a8d6012a44ddf5e69ff76c26d96ebc1f100..e1ee0c04448f950fb668d427aeea623ef2cedde1 100644
|
| --- a/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| +++ b/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java
|
| @@ -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,
|
|
|