summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1569645.html
blob: b1f1247f26352161b1df81bfe46f6852fa848058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
    <script>
      function start () {
        const canvas = document.getElementById("c")
        canvas.getContext("2d")
        const video = canvas.captureStream()
        const ac = new AudioContext()
        const dest = ac.createMediaStreamDestination()
        const recorder = new MediaRecorder(
          new MediaStream([...video.getTracks(), ...dest.stream.getTracks()]), {
            'mimeType': 'audio/ogg'
          })
        recorder.start()
      }

      window.addEventListener('load', start)
    </script>
</head>
<body>
<canvas id="c"></canvas>
</body>
</html>