mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
7be7b11a1c
This patch is generated by the following sed script: find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \; MozReview-Commit-ID: AzhtdwJwVNg --HG-- extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
30 lines
768 B
HTML
30 lines
768 B
HTML
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<!doctype html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Web Audio Editor test page</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript">
|
|
"use strict";
|
|
|
|
let ctx = new AudioContext();
|
|
let audio = new Audio();
|
|
let meNode, msNode, mdNode;
|
|
navigator.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia;
|
|
|
|
navigator.getUserMedia({ audio: true, fake: true }, stream => {
|
|
meNode = ctx.createMediaElementSource(audio);
|
|
msNode = ctx.createMediaStreamSource(stream);
|
|
mdNode = ctx.createMediaStreamDestination();
|
|
}, () => {});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|