Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: webrtc/api/android/jni/peerconnection_jni.cc

Issue 2118873002: Add pruneTurnPorts to the java RTCConfiguration. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merged Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 GetFieldID(jni, j_rtc_config_class, "continualGatheringPolicy", 1585 GetFieldID(jni, j_rtc_config_class, "continualGatheringPolicy",
1586 "Lorg/webrtc/PeerConnection$ContinualGatheringPolicy;"); 1586 "Lorg/webrtc/PeerConnection$ContinualGatheringPolicy;");
1587 jobject j_continual_gathering_policy = 1587 jobject j_continual_gathering_policy =
1588 GetObjectField(jni, j_rtc_config, j_continual_gathering_policy_id); 1588 GetObjectField(jni, j_rtc_config, j_continual_gathering_policy_id);
1589 1589
1590 jfieldID j_ice_candidate_pool_size_id = 1590 jfieldID j_ice_candidate_pool_size_id =
1591 GetFieldID(jni, j_rtc_config_class, "iceCandidatePoolSize", "I"); 1591 GetFieldID(jni, j_rtc_config_class, "iceCandidatePoolSize", "I");
1592 jfieldID j_presume_writable_when_fully_relayed_id = GetFieldID( 1592 jfieldID j_presume_writable_when_fully_relayed_id = GetFieldID(
1593 jni, j_rtc_config_class, "presumeWritableWhenFullyRelayed", "Z"); 1593 jni, j_rtc_config_class, "presumeWritableWhenFullyRelayed", "Z");
1594 1594
1595 jfieldID j_prune_turn_ports_id =
1596 GetFieldID(jni, j_rtc_config_class, "pruneTurnPorts", "Z");
1597
1595 rtc_config->type = 1598 rtc_config->type =
1596 JavaIceTransportsTypeToNativeType(jni, j_ice_transports_type); 1599 JavaIceTransportsTypeToNativeType(jni, j_ice_transports_type);
1597 rtc_config->bundle_policy = 1600 rtc_config->bundle_policy =
1598 JavaBundlePolicyToNativeType(jni, j_bundle_policy); 1601 JavaBundlePolicyToNativeType(jni, j_bundle_policy);
1599 rtc_config->rtcp_mux_policy = 1602 rtc_config->rtcp_mux_policy =
1600 JavaRtcpMuxPolicyToNativeType(jni, j_rtcp_mux_policy); 1603 JavaRtcpMuxPolicyToNativeType(jni, j_rtcp_mux_policy);
1601 rtc_config->tcp_candidate_policy = 1604 rtc_config->tcp_candidate_policy =
1602 JavaTcpCandidatePolicyToNativeType(jni, j_tcp_candidate_policy); 1605 JavaTcpCandidatePolicyToNativeType(jni, j_tcp_candidate_policy);
1603 rtc_config->candidate_network_policy = 1606 rtc_config->candidate_network_policy =
1604 JavaCandidateNetworkPolicyToNativeType(jni, j_candidate_network_policy); 1607 JavaCandidateNetworkPolicyToNativeType(jni, j_candidate_network_policy);
1605 JavaIceServersToJsepIceServers(jni, j_ice_servers, &rtc_config->servers); 1608 JavaIceServersToJsepIceServers(jni, j_ice_servers, &rtc_config->servers);
1606 rtc_config->audio_jitter_buffer_max_packets = 1609 rtc_config->audio_jitter_buffer_max_packets =
1607 GetIntField(jni, j_rtc_config, j_audio_jitter_buffer_max_packets_id); 1610 GetIntField(jni, j_rtc_config, j_audio_jitter_buffer_max_packets_id);
1608 rtc_config->audio_jitter_buffer_fast_accelerate = GetBooleanField( 1611 rtc_config->audio_jitter_buffer_fast_accelerate = GetBooleanField(
1609 jni, j_rtc_config, j_audio_jitter_buffer_fast_accelerate_id); 1612 jni, j_rtc_config, j_audio_jitter_buffer_fast_accelerate_id);
1610 rtc_config->ice_connection_receiving_timeout = 1613 rtc_config->ice_connection_receiving_timeout =
1611 GetIntField(jni, j_rtc_config, j_ice_connection_receiving_timeout_id); 1614 GetIntField(jni, j_rtc_config, j_ice_connection_receiving_timeout_id);
1612 rtc_config->ice_backup_candidate_pair_ping_interval = GetIntField( 1615 rtc_config->ice_backup_candidate_pair_ping_interval = GetIntField(
1613 jni, j_rtc_config, j_ice_backup_candidate_pair_ping_interval_id); 1616 jni, j_rtc_config, j_ice_backup_candidate_pair_ping_interval_id);
1614 rtc_config->continual_gathering_policy = 1617 rtc_config->continual_gathering_policy =
1615 JavaContinualGatheringPolicyToNativeType( 1618 JavaContinualGatheringPolicyToNativeType(
1616 jni, j_continual_gathering_policy); 1619 jni, j_continual_gathering_policy);
1617 rtc_config->ice_candidate_pool_size = 1620 rtc_config->ice_candidate_pool_size =
1618 GetIntField(jni, j_rtc_config, j_ice_candidate_pool_size_id); 1621 GetIntField(jni, j_rtc_config, j_ice_candidate_pool_size_id);
1622 rtc_config->prune_turn_ports =
1623 GetBooleanField(jni, j_rtc_config, j_prune_turn_ports_id);
1619 rtc_config->presume_writable_when_fully_relayed = GetBooleanField( 1624 rtc_config->presume_writable_when_fully_relayed = GetBooleanField(
1620 jni, j_rtc_config, j_presume_writable_when_fully_relayed_id); 1625 jni, j_rtc_config, j_presume_writable_when_fully_relayed_id);
1621 } 1626 }
1622 1627
1623 JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)( 1628 JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)(
1624 JNIEnv *jni, jclass, jlong factory, jobject j_rtc_config, 1629 JNIEnv *jni, jclass, jlong factory, jobject j_rtc_config,
1625 jobject j_constraints, jlong observer_p) { 1630 jobject j_constraints, jlong observer_p) {
1626 rtc::scoped_refptr<PeerConnectionFactoryInterface> f( 1631 rtc::scoped_refptr<PeerConnectionFactoryInterface> f(
1627 reinterpret_cast<PeerConnectionFactoryInterface*>( 1632 reinterpret_cast<PeerConnectionFactoryInterface*>(
1628 factoryFromJava(factory))); 1633 factoryFromJava(factory)));
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 return JavaStringFromStdString( 2300 return JavaStringFromStdString(
2296 jni, 2301 jni,
2297 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2302 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2298 } 2303 }
2299 2304
2300 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2305 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2301 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2306 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2302 } 2307 }
2303 2308
2304 } // namespace webrtc_jni 2309 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/PeerConnection.java ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698