webrtc/sdk/android
Taylor Brandstetter 157e76f8a1 Fix issue in AndroidNetworkMonitor for Wi-Fi Direct socket binding.
AndroidNetworkMonitor::BindSocketToNetwork incorrectly checks if the
socket_fd is NETWORK_UNSPECIFIED, when it should instead be checking
if the network_handle is that. This causes the PhysicalSocket to think
that it has succesfully bound to the port, when it really has not.
This stops IceCandidates from being created for these addresses
(although a socket is listening).

The net result of this is that webrtc connections don't work when both
peers are using Wifi-Direct to communicate, although we didn't notice
this previously since we were using Wifi-Direct only on one side.

TBR=pthatcher@webrtc.org

Bug: webrtc:8403
Change-Id: Ibe8f5424654ac9db1f79927ba7ac241fd40d9cba
Reviewed-on: https://webrtc-review.googlesource.com/12442
Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20331}
2017-10-17 20:18:31 +00:00
..
api/org/webrtc Make YuvConverter public. 2017-10-17 11:33:30 +00:00
instrumentationtests Expose functionality to convert TextureBuffer to I420. 2017-10-16 14:55:37 +00:00
src Fix issue in AndroidNetworkMonitor for Wi-Fi Direct socket binding. 2017-10-17 20:18:31 +00:00
tests/src/org/webrtc Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
AndroidManifest.xml Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
BUILD.gn Expose functionality to convert TextureBuffer to I420. 2017-10-16 14:55:37 +00:00
OWNERS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
PRESUBMIT.py Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
README Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00

This directory holds a Java implementation of the webrtc::PeerConnection API, as
well as the JNI glue C++ code that lets the Java implementation reuse the C++
implementation of the same API.

To build the Java API and related tests, generate GN projects with:
--args='target_os="android"'

To use the Java API, start by looking at the public interface of
org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest.

To understand the implementation of the API, see the native code in jni/.