We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45ecfc5 + a87a15e commit 9106d5dCopy full SHA for 9106d5d
src/clapper.js
@@ -161,7 +161,7 @@ export class ClapperPlugin {
161
this.freqData = new Uint8Array(this.analyser.frequencyBinCount);
162
this.log.debug(this.l('Starting clap detection'));
163
this._started = true;
164
- navigator.getUserMedia({ audio: true }, handleStream, (e) => {
+ navigator.mediaDevices.getUserMedia({ audio: true }).then(handleStream, (e) => {
165
this.log.error(this.l('Could not get audio stream'), e);
166
});
167
}
0 commit comments