joelle-o-world / singing-our-lives

Web app for the singing our lives project.
1 stars 0 forks source link

Type error from p5 #56

Closed joelle-o-world closed 4 years ago

joelle-o-world commented 4 years ago
TypeError: undefined is not a function (near '...window.navigator.getUserMedia...')
joelle-o-world commented 4 years ago
...
// if Firefox where users select their source via browser
      // if (typeof MediaStreamTrack.getSources === 'undefined') {
      // Only get the audio stream.
      window.navigator.getUserMedia({ 'audio': true }, this._onStream = function (stream) {
        self.stream = stream;
        self.enabled = true;
        // Wrap a MediaStreamSourceNode around the live input
        self.mediaStream = p5sound.audiocontext.createMediaStreamSource(stream);
        self.mediaStream.connect(self.output);
        // only send to the Amplitude reader, so we can see it but not hear it.
        self.amplitude.setInput(self.output);
        if (successCallback)
...
joelle-o-world commented 4 years ago
joelle-o-world commented 4 years ago

The only consequence of this seems to be that p5 doesn't work. Doesn't appear to effect the rest of the page.