Bug 181557
| Summary: | getUserMedia => ScriptProcessorNode yields inputBuffer of all zeros | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Boris Smus <boris> |
| Component: | Web Audio | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eric.carlson, jer.noble, solomax666, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Boris Smus
I was trying to get raw audio input signal from the microphone on my computer. I found that connecting getUserMedia to a ScriptProcessorNode works, but that the input buffers that are read by the onprocess callback of the ScriptProcessorNode are all zeros.
Here's how you can test it:
1. Open https://webrtc.github.io/samples/src/content/getusermedia/volume/ in WebKit (I tried in Safari Version 11.0.2 (13604.4.7.1.3) and Safari Technology Preview)
2. Observe the instant, slow and clip volume meters.
Actual: they are all zero.
Expected: they should fluctuate in response to the ambient sound captured by your device's mic.
Same URL works in Chrome.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Carlson
<rdar://problem/33960944>
Maxim Solodovnik
This WebRTC example doesn't work for me in Safari 14.0
It seems like no data is received from microphone
can it be fixed?
Maxim Solodovnik
Works as expected in "Safari Tech Preview" :))