summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1766668.html
blob: 0ea142e563f1e46c6db7f3982869a995ece6fd94 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<script>
  document.addEventListener('DOMContentLoaded', async () => {
    await navigator.mediaDevices.getUserMedia({ 'audio': {} })
    const peer = new RTCPeerConnection({ 'iceServers': [{ 'urls': 'stun:23.21.150.121' }], 'peerIdentity': 'B' }, {})
    const stream = await navigator.mediaDevices.getUserMedia({ 'audio': {} })
    stream.getTracks().forEach((track) => peer.addTrack(track, stream))
    try { offer = await peer.createOffer({}) } catch (e) { }
    await peer.setRemoteDescription(offer)
  })
</script>