4 <script type=
"application/javascript" src=
"pc.js"></script>
8 <script type=
"application/javascript">
11 title:
"Basic audio-only peer connection with port dependent NAT that blocks UDP"
15 runNetworkTest(options =
> {
16 SpecialPowers.pushPrefEnv(
19 ['media.peerconnection.nat_simulator.filtering_type', 'PORT_DEPENDENT'],
20 ['media.peerconnection.nat_simulator.mapping_type', 'PORT_DEPENDENT'],
21 ['media.peerconnection.nat_simulator.block_udp', true]
23 }, function (options) {
24 options = options || {};
25 options.expectedLocalCandidateType =
"relayed-tcp";
26 options.expectedRemoteCandidateType =
"relayed-tcp";
27 // No reason to wait for gathering to complete like the other NAT tests,
28 // since relayed-tcp is the only thing that can work.
29 test = new PeerConnectionTest(options);
30 test.setMediaConstraints([{audio: true}], [{audio: true}]);
33 }, { useIceServer: true });