cwilso / PitchDetect

Pitch detection in Web Audio using autocorrelation
https://cwilso.github.io/PitchDetect/
MIT License
1.31k stars 440 forks source link

Stream generation failed #18

Closed krancan closed 8 years ago

krancan commented 8 years ago

I get Stream generation failed alert when using live input. I think, https is problem. Is it possible to use live input via http? On localhost works perfect.

dav-m85 commented 8 years ago

Running the server with https solved the issue. I haven't found any mention of SSL being mandatory in the documentation, maybe I looked in the wrong place ? https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

Ravenstine commented 8 years ago

Apparently, this is a Chrome thing and not something specific to the actual spec for getUserMedia. https://webrtchacks.com/chrome-secure-origin-https/

Overall, I think it's a good decision. It's just a drag that any demos I have involving getUserMedia keep breaking every 8 or so months because of changes like this.

cwilso commented 8 years ago

@dav-m85, it is mentioned in that page - note [3]. There isn't a way to use getUserMedia in Chrome on non-secure domains.