I am trying to create an Android application using WebRTC using these projects:
AndroidRTC
What this repository uses: io.prinstine.libjingle
This project works well when two clients are connected to the network via Wi-Fi, but it does not work when one of the clients is connected via cellular data.
I tried to find a source to find out what was going on. I found this static class:
public static class Options { // Keep in sync with webrtc/base/network.h! static final int ADAPTER_TYPE_UNKNOWN = 0; static final int ADAPTER_TYPE_ETHERNET = 1 << 0; static final int ADAPTER_TYPE_WIFI = 1 << 1; static final int ADAPTER_TYPE_CELLULAR = 1 << 2; static final int ADAPTER_TYPE_VPN = 1 << 3; static final int ADAPTER_TYPE_LOOPBACK = 1 << 4; public int networkIgnoreMask; }
And I found this line of code that refers to a native method that uses this class:
public void setOptions(Options options) { nativeSetOptions(nativeFactory, options); } public native void nativeSetOptions(long nativeFactory, Options options);
The question is, how do I enable cellular connectivity? or I would appreciate it if you could help me find the source of my own methods used in this project to better understand the structure.
source share