setLocalProxy abstract method
Valid since v3.56.1
Sets local proxy.
configurations
: Local proxy configurations.
You can set both Http tunnel and Socks5 as your local proxies, or only set one of them based on your needs. If you set both Http tunnel and Socks5 as your local proxies, then media traffic and signaling are routed through Socks5 proxy and Http requests through Http tunnel proxy. If you set either Http tunnel or Socks5 as your local proxy, then media traffic, signaling and Http requests are all routed through the proxy you chose.
If you want to remove the existing local proxy configurations, you can call this API with the parameter set to null.
Notes:
- You must call this API before joining the room.
- After calling this API, you will receive RTCVideoEventHandler.onLocalProxyStateChanged callback informing you of the states of local proxy connection.
Implementation
Future<int?> setLocalProxy(List<LocalProxyConfiguration>? configurations);