networkIgnoreMask not working?

275 views
Skip to first unread message

Adam Ben-Ayoun

unread,
May 7, 2015, 8:49:59 AM5/7/15
to discuss...@googlegroups.com
hi guys,

We are using a test application on Android (native), I am trying to disable WiFi by settings networkIgnoreMask to 1 << 1:

PeerConnectionFactory.initializeAndroidGlobals(context, true, false, false, context);
factory = new PeerConnectionFactory();
PeerConnectionFactory.Options factoryOptions = new PeerConnectionFactory.Options();
factoryOptions.networkIgnoreMask = 0;
factory.setOptions(factoryOptions);

When ICE gathering is done the local offer sdp contains the following candidates:
    a=candidate:913901197 1 udp 2122260223 192.168.1.111 36686 typ host generation 0
    a=candidate:913901197 2 udp 2122260222 192.168.1.111 55376 typ host generation 0
    a=candidate:2029714045 1 tcp 1518280447 192.168.1.111 47341 typ host tcptype passive generation 0
    a=candidate:2029714045 2 tcp 1518280446 192.168.1.111 40211 typ host tcptype passive generation 0
    a=candidate:3073441849 1 udp 1686052607 <my external ip> 36686 typ srflx raddr 192.168.1.111 rport 36686 generation 0
    a=candidate:3073441849 2 udp 1686052606 <my external ip> 55376 typ srflx raddr 192.168.1.111 rport 55376 generation 0
    a=candidate:746068014 1 udp 25108223 <my turn ip> 51970 typ relay raddr <my external ip> rport 48639 generation 0
    a=candidate:746068014 2 udp 25108222 <my turn ip> 51338 typ relay raddr <my external ip> rport 38459 generation 0

Any idea? We would like to totally disable WiFi..

Thanks,
Adam 

Adam Ben-Ayoun

unread,
May 7, 2015, 8:50:54 AM5/7/15
to discuss...@googlegroups.com
Sorry, copy/paste error, we are using:
PeerConnectionFactory.initializeAndroidGlobals(context, true, false, false, context);
factory = new PeerConnectionFactory();
PeerConnectionFactory.Options factoryOptions = new PeerConnectionFactory.Options();
factoryOptions.networkIgnoreMask = 1 << 1;
factory.setOptions(factoryOptions);

Justin Uberti

unread,
May 13, 2015, 6:33:14 PM5/13/15
to discuss-webrtc
I think this is a known issue - we don't have type classification of networks enabled on all platforms yet.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages