| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 JOW(jlong, PeerConnectionFactory_nativeCreateLocalMediaStream)( | 1251 JOW(jlong, PeerConnectionFactory_nativeCreateLocalMediaStream)( |
| 1252 JNIEnv* jni, jclass, jlong native_factory, jstring label) { | 1252 JNIEnv* jni, jclass, jlong native_factory, jstring label) { |
| 1253 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1253 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
| 1254 factoryFromJava(native_factory)); | 1254 factoryFromJava(native_factory)); |
| 1255 rtc::scoped_refptr<MediaStreamInterface> stream( | 1255 rtc::scoped_refptr<MediaStreamInterface> stream( |
| 1256 factory->CreateLocalMediaStream(JavaToStdString(jni, label))); | 1256 factory->CreateLocalMediaStream(JavaToStdString(jni, label))); |
| 1257 return (jlong)stream.release(); | 1257 return (jlong)stream.release(); |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 JOW(jlong, PeerConnectionFactory_nativeCreateVideoSource) | 1260 JOW(jlong, PeerConnectionFactory_nativeCreateVideoSource) |
| 1261 (JNIEnv* jni, jclass, jlong native_factory, jobject j_egl_context) { | 1261 (JNIEnv* jni, jclass, jlong native_factory, jobject j_egl_context, |
| 1262 jboolean is_screencast) { |
| 1262 OwnedFactoryAndThreads* factory = | 1263 OwnedFactoryAndThreads* factory = |
| 1263 reinterpret_cast<OwnedFactoryAndThreads*>(native_factory); | 1264 reinterpret_cast<OwnedFactoryAndThreads*>(native_factory); |
| 1264 | 1265 |
| 1265 rtc::scoped_refptr<webrtc::AndroidVideoTrackSource> source( | 1266 rtc::scoped_refptr<webrtc::AndroidVideoTrackSource> source( |
| 1266 new rtc::RefCountedObject<webrtc::AndroidVideoTrackSource>( | 1267 new rtc::RefCountedObject<webrtc::AndroidVideoTrackSource>( |
| 1267 factory->signaling_thread(), jni, j_egl_context)); | 1268 factory->signaling_thread(), jni, j_egl_context, is_screencast)); |
| 1268 rtc::scoped_refptr<webrtc::VideoTrackSourceProxy> proxy_source = | 1269 rtc::scoped_refptr<webrtc::VideoTrackSourceProxy> proxy_source = |
| 1269 webrtc::VideoTrackSourceProxy::Create(factory->signaling_thread(), | 1270 webrtc::VideoTrackSourceProxy::Create(factory->signaling_thread(), |
| 1270 factory->worker_thread(), source); | 1271 factory->worker_thread(), source); |
| 1271 | 1272 |
| 1272 return (jlong)proxy_source.release(); | 1273 return (jlong)proxy_source.release(); |
| 1273 } | 1274 } |
| 1274 | 1275 |
| 1275 JOW(void, PeerConnectionFactory_nativeInitializeVideoCapturer) | 1276 JOW(void, PeerConnectionFactory_nativeInitializeVideoCapturer) |
| 1276 (JNIEnv* jni, | 1277 (JNIEnv* jni, |
| 1277 jclass, | 1278 jclass, |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 return JavaStringFromStdString( | 2327 return JavaStringFromStdString( |
| 2327 jni, | 2328 jni, |
| 2328 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); | 2329 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); |
| 2329 } | 2330 } |
| 2330 | 2331 |
| 2331 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { | 2332 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { |
| 2332 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); | 2333 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); |
| 2333 } | 2334 } |
| 2334 | 2335 |
| 2335 } // namespace webrtc_jni | 2336 } // namespace webrtc_jni |
| OLD | NEW |