mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
8657f221cc
From fe7f1f72bdb00e0ad2d687d40548138de506a4d6 Mon Sep 17 00:00:00 2001 --- browser/devtools/webaudioeditor/test/browser.ini | 2 + .../test/browser_wa_properties-view-media-nodes.js | 45 ++++++++++++++++++++++ .../test/doc_media-node-creation.html | 29 ++++++++++++++ browser/devtools/webaudioeditor/test/head.js | 16 ++++++++ toolkit/devtools/server/actors/webaudio.js | 7 +++- 5 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 browser/devtools/webaudioeditor/test/browser_wa_properties-view-media-nodes.js create mode 100644 browser/devtools/webaudioeditor/test/doc_media-node-creation.html
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;version=1.8">
|
|
"use strict";
|
|
|
|
let ctx = new AudioContext();
|
|
let audio = new Audio();
|
|
let meNode, msNode, mdNode;
|
|
navigator.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia;
|
|
|
|
navigator.getUserMedia({ audio: true }, stream => {
|
|
meNode = ctx.createMediaElementSource(audio);
|
|
msNode = ctx.createMediaStreamSource(stream);
|
|
mdNode = ctx.createMediaStreamDestination();
|
|
}, () => {});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|