Android Http Proxy Support

109 views
Skip to first unread message

Adrian S

unread,
Aug 12, 2021, 6:22:04 PM8/12/21
to discuss-webrtc
Hello all, 

We have been using the webrtc.org android library for a few weeks now and are quite happy with how it performs.

Our use case is a enterprise WebRTC solution which supports various platforms. Some of our Android users have strict company networks that and are behind a http proxy.

Based on what I could see from the native source-code there is built in support for proxy in classes like HttpProxyConnectJob .h and so on. 

Unfortunately I have not found a way to pass the proxy information (host:port) from the Java SDK side to the native part. There seems to be no documentation regarding this use case, or at least none that I could find...

With the current version of the app as soon as a proxy is configured for the current network org.webrtc will only gather candidates of type host and no candidates of type relay. Because of this, a peer connection cannot be established outside the local network.

Is there any way we can pass the proxy info to the PeerConnectionFactory or any hint on where we should start looking if we intend to add this to the source and compile a custom version of the android library?

Thank you.

Best regards,
Adrian

Reply all
Reply to author
Forward
0 new messages