PitchDetect icon indicating copy to clipboard operation
PitchDetect copied to clipboard

Downloaded zip, program wont work

Open odonckers opened this issue 10 years ago • 8 comments

When I try the live input or anything else for that matter, it stays blank and will not do anything. Please help, this program would be so cool if it would work in places other than your demo website.

odonckers avatar Jan 05 '16 21:01 odonckers

Well, javascript typically won't run if you just open it as file://; you'll need to run a local web host. But it should work after that.

cwilso avatar Jan 05 '16 22:01 cwilso

Okay, I will try it.

odonckers avatar Jan 12 '16 16:01 odonckers

I tried this on my website http://dontaskmeagain.com/pitch/ and it gave me this error: getUserMedia threw exception :TypeError: navigator.getUserMedia is not a function. (In 'navigator.getUserMedia(dictionary, callback, error)', 'navigator.getUserMedia' is undefined)

odonckers avatar Jan 12 '16 16:01 odonckers

getUserMedia is restricted to secure domains. If you're not running on localhost, it will need to be https://.

cwilso avatar Jan 12 '16 16:01 cwilso

Okay, I will see what I can do...

odonckers avatar Jan 12 '16 17:01 odonckers

If you still get the error, make sure the navigator you're using is compatible. getUserMedia is not supported everywhere... http://caniuse.com/#feat=stream

dav-m85 avatar Feb 07 '16 04:02 dav-m85

Ah, good point. Safari doesn't support getUserMedia, on iOS or desktop.

cwilso avatar Feb 08 '16 09:02 cwilso

As of September 2018 navigator.getUserMedia has been deprecated (though still supported pretty much) in favour of navigator.mediaDevices.getUserMedia. The getUserMedia function in the code could be modified to incorporate this.

Puddingsan avatar Sep 19 '18 00:09 Puddingsan