You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is definitely weird, since mediaStream is defined in the WebAudio spec. Apparently a bug in Firefox. (I tested a comparable demo which uses createMediaStreamSource to take a look - yep, the mediaStream property is actually missing.)
So, browser specific. But worth looking into. I think you could just store the media stream in a separate property from this.mic:
Expected behavior
When the loudness block is called and the microphone is connected, a value is returned.
Actual behavior
Nothing is returned, and an error is thrown:
TypeError: this.mic.mediaStream is undefined
It looks like the error is coming from here:
Steps to reproduce
It looks like this error is spawning from this line:
The microphone itself is set shortly before:
This is definitely weird, since
mediaStream
is defined in the WebAudio spec. Apparently a bug in Firefox. (I tested a comparable demo which usescreateMediaStreamSource
to take a look - yep, themediaStream
property is actually missing.)So, browser specific. But worth looking into. I think you could just store the media stream in a separate property from
this.mic
:Operating system and browser
Firefox 58, 59. Debian (Testing).
The text was updated successfully, but these errors were encountered: