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 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 | 1538 |
1539 jfieldID j_ice_backup_candidate_pair_ping_interval_id = GetFieldID( | 1539 jfieldID j_ice_backup_candidate_pair_ping_interval_id = GetFieldID( |
1540 jni, j_rtc_config_class, "iceBackupCandidatePairPingInterval", "I"); | 1540 jni, j_rtc_config_class, "iceBackupCandidatePairPingInterval", "I"); |
1541 | 1541 |
1542 jfieldID j_continual_gathering_policy_id = | 1542 jfieldID j_continual_gathering_policy_id = |
1543 GetFieldID(jni, j_rtc_config_class, "continualGatheringPolicy", | 1543 GetFieldID(jni, j_rtc_config_class, "continualGatheringPolicy", |
1544 "Lorg/webrtc/PeerConnection$ContinualGatheringPolicy;"); | 1544 "Lorg/webrtc/PeerConnection$ContinualGatheringPolicy;"); |
1545 jobject j_continual_gathering_policy = | 1545 jobject j_continual_gathering_policy = |
1546 GetObjectField(jni, j_rtc_config, j_continual_gathering_policy_id); | 1546 GetObjectField(jni, j_rtc_config, j_continual_gathering_policy_id); |
1547 | 1547 |
| 1548 jfieldID j_ice_candidate_pool_size_id = |
| 1549 GetFieldID(jni, j_rtc_config_class, "iceCandidatePoolSize", "I"); |
| 1550 |
1548 rtc_config->type = | 1551 rtc_config->type = |
1549 JavaIceTransportsTypeToNativeType(jni, j_ice_transports_type); | 1552 JavaIceTransportsTypeToNativeType(jni, j_ice_transports_type); |
1550 rtc_config->bundle_policy = | 1553 rtc_config->bundle_policy = |
1551 JavaBundlePolicyToNativeType(jni, j_bundle_policy); | 1554 JavaBundlePolicyToNativeType(jni, j_bundle_policy); |
1552 rtc_config->rtcp_mux_policy = | 1555 rtc_config->rtcp_mux_policy = |
1553 JavaRtcpMuxPolicyToNativeType(jni, j_rtcp_mux_policy); | 1556 JavaRtcpMuxPolicyToNativeType(jni, j_rtcp_mux_policy); |
1554 rtc_config->tcp_candidate_policy = | 1557 rtc_config->tcp_candidate_policy = |
1555 JavaTcpCandidatePolicyToNativeType(jni, j_tcp_candidate_policy); | 1558 JavaTcpCandidatePolicyToNativeType(jni, j_tcp_candidate_policy); |
1556 JavaIceServersToJsepIceServers(jni, j_ice_servers, &rtc_config->servers); | 1559 JavaIceServersToJsepIceServers(jni, j_ice_servers, &rtc_config->servers); |
1557 rtc_config->audio_jitter_buffer_max_packets = | 1560 rtc_config->audio_jitter_buffer_max_packets = |
1558 GetIntField(jni, j_rtc_config, j_audio_jitter_buffer_max_packets_id); | 1561 GetIntField(jni, j_rtc_config, j_audio_jitter_buffer_max_packets_id); |
1559 rtc_config->audio_jitter_buffer_fast_accelerate = GetBooleanField( | 1562 rtc_config->audio_jitter_buffer_fast_accelerate = GetBooleanField( |
1560 jni, j_rtc_config, j_audio_jitter_buffer_fast_accelerate_id); | 1563 jni, j_rtc_config, j_audio_jitter_buffer_fast_accelerate_id); |
1561 rtc_config->ice_connection_receiving_timeout = | 1564 rtc_config->ice_connection_receiving_timeout = |
1562 GetIntField(jni, j_rtc_config, j_ice_connection_receiving_timeout_id); | 1565 GetIntField(jni, j_rtc_config, j_ice_connection_receiving_timeout_id); |
1563 rtc_config->ice_backup_candidate_pair_ping_interval = GetIntField( | 1566 rtc_config->ice_backup_candidate_pair_ping_interval = GetIntField( |
1564 jni, j_rtc_config, j_ice_backup_candidate_pair_ping_interval_id); | 1567 jni, j_rtc_config, j_ice_backup_candidate_pair_ping_interval_id); |
1565 rtc_config->continual_gathering_policy = | 1568 rtc_config->continual_gathering_policy = |
1566 JavaContinualGatheringPolicyToNativeType( | 1569 JavaContinualGatheringPolicyToNativeType( |
1567 jni, j_continual_gathering_policy); | 1570 jni, j_continual_gathering_policy); |
| 1571 rtc_config->ice_candidate_pool_size = |
| 1572 GetIntField(jni, j_rtc_config, j_ice_candidate_pool_size_id); |
1568 } | 1573 } |
1569 | 1574 |
1570 JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)( | 1575 JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)( |
1571 JNIEnv *jni, jclass, jlong factory, jobject j_rtc_config, | 1576 JNIEnv *jni, jclass, jlong factory, jobject j_rtc_config, |
1572 jobject j_constraints, jlong observer_p) { | 1577 jobject j_constraints, jlong observer_p) { |
1573 rtc::scoped_refptr<PeerConnectionFactoryInterface> f( | 1578 rtc::scoped_refptr<PeerConnectionFactoryInterface> f( |
1574 reinterpret_cast<PeerConnectionFactoryInterface*>( | 1579 reinterpret_cast<PeerConnectionFactoryInterface*>( |
1575 factoryFromJava(factory))); | 1580 factoryFromJava(factory))); |
1576 | 1581 |
1577 PeerConnectionInterface::RTCConfiguration rtc_config; | 1582 PeerConnectionInterface::RTCConfiguration rtc_config; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2242 return JavaStringFromStdString( | 2247 return JavaStringFromStdString( |
2243 jni, | 2248 jni, |
2244 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); | 2249 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); |
2245 } | 2250 } |
2246 | 2251 |
2247 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { | 2252 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { |
2248 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); | 2253 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); |
2249 } | 2254 } |
2250 | 2255 |
2251 } // namespace webrtc_jni | 2256 } // namespace webrtc_jni |
OLD | NEW |