summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/tests/crashtests/1799168.html
blob: 6c5c9db237c3729faad7eac8c8d6b4412a20ae58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
window.addEventListener('load', async () => {
  const offerer = new RTCPeerConnection();
  const answerer = new RTCPeerConnection();
  offerer.addTransceiver('audio');
  await offerer.setLocalDescription();
  await answerer.setRemoteDescription(offerer.localDescription);
  const answer = await answerer.createAnswer();
  await offerer.setRemoteDescription(answer);
  // relay candidate with TCP!
  const candidate = 'candidate:3 1 tcp 18087935 20.253.151.225 3478 typ relay raddr 10.0.48.153 rport 3478 tcptype passive';
  await offerer.addIceCandidate({candidate, sdpMLineIndex: 0});
  await new Promise(r => setTimeout(r, 2000));
  self.close();
})
</script>