getUserMedia audio stream dies after about 5 seconds
After about 5 seconds of working correctly, the audio icon disappears on the address bar and the stream becomes constantly zero.
HTML to reproduce:
Chosen solution
After noticing not all web audio apps suffer from this problem, I started digging around, and found this behavior to be related to scoping (!).
Basically - it seems that at least one part of the audio pipeline needs to be global for it to keep on working. For instance, adding
window.horrible_hack_for_mozilla = input;
before " var node =" fixes the behavior.Read this answer in context 👍 3
All Replies (1)
Chosen Solution
After noticing not all web audio apps suffer from this problem, I started digging around, and found this behavior to be related to scoping (!).
Basically - it seems that at least one part of the audio pipeline needs to be global for it to keep on working. For instance, adding
window.horrible_hack_for_mozilla = input;
before " var node =" fixes the behavior.