зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368490 - Add crashtest for media recorder when reducing number of source stream channels. r=jesup
MozReview-Commit-ID: Fi5h2ESokBV --HG-- extra : source : 6a3f54a2a0f6594f978edb2b2623c0047dbe6d19 extra : amend_source : 8575007fdb0fcb9e8c7b3455144cf7b9765bffbb
This commit is contained in:
Родитель
c7df832636
Коммит
38681499ef
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<title> Bug 1368490 : Crash if media recorder source stream reduces number of channels. </title>
|
||||
</head>
|
||||
<meta charset="utf-8">
|
||||
<script type="text/javascript">
|
||||
|
||||
function boom() {
|
||||
let audioContext = new window.AudioContext();
|
||||
let oscillator = audioContext.createOscillator();
|
||||
let dst = audioContext.createMediaStreamDestination();
|
||||
oscillator.channelCount = 4;
|
||||
dst.channelCount = 4;
|
||||
oscillator.connect(dst, 0, 0);
|
||||
oscillator.start();
|
||||
mediaRec = new MediaRecorder(dst.stream);
|
||||
|
||||
mediaRec.start(100);
|
||||
setTimeout(() => {
|
||||
dst.channelCount = 1;
|
||||
setTimeout(() => {
|
||||
mediaRec.stop();
|
||||
document.documentElement.removeAttribute("class");
|
||||
}, 100);
|
||||
}, 100);
|
||||
}
|
||||
</script>
|
||||
<body onload="boom();"></body>
|
||||
</html>
|
|
@ -83,6 +83,7 @@ load 1185176.html
|
|||
load 1185192.html
|
||||
load 1304948.html
|
||||
load 1319486.html
|
||||
load 1368490.html
|
||||
load 1291702.html
|
||||
load 1384248.html
|
||||
load disconnect-wrong-destination.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче