Skip to content

Instantly share code, notes, and snippets.

@amiika
Last active December 16, 2015 16:59
Show Gist options
  • Save amiika/5467043 to your computer and use it in GitHub Desktop.
Save amiika/5467043 to your computer and use it in GitHub Desktop.
MediaStream Processing API Test
<!DOCTYPE html>
<html>
<head>
<script>
function gotAudio(stream) {
// Start processing
// peerConnection.addStream(stream.createWorkerProcessor(new Worker("effect.js")));
}
window.addEventListener('load', init, false);
function init() {
try {
navigator.webkitGetUserMedia('audio', gotAudio);
alert('MediaStream Processing API is supported!');
}
catch(e) {
alert('MediaStream Processing API is not supported in this browser');
}
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment