gecko-dev/browser/devtools/webaudioeditor/test/doc_media-node-creation.html
Jordan Santell 8657f221cc Bug 1026766 - Support Media AudioNodes in the web audio editor. r=vp
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
2014-06-17 15:54:53 -07:00

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>