Implement the sampleRate microphone constraint
Categories
(Core :: WebRTC: Audio/Video, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox57 | --- | affected |
People
(Reporter: jib, Unassigned)
References
Details
(Keywords: stale-bug)
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Reporter | ||
Comment 7•5 years ago
|
||
Reminder to check the privacy.resistFingerprinting
pref as well as bug 1528042 when implementing this feature, since it might expose system sample rates through track.getSettings()
.
Updated•2 years ago
|
Comment 8•11 months ago
|
||
(In reply to Paul Adenot (:padenot) from comment #5)
Cubeb will get you anything in [8000, 192000] on any platform, for output or
input, it just gives you what you ask for.We can resample anything to anything, at any point, so it's just a matter of
making a decision.It's really unclear what this constraint is for, because the only way to
look into a MediaStream is to use the Web Audio API, and the Web Audio API
will resample all inputs to its own sample-rate. One of the way to observe
this is to notice that the high partials will be cut off because of the
lower sample-rate I suppose.
Firefox does not support resampling MediaStream to an AudioContext (domexception: AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported
)
That I could find, it is currently not possible to reliably read raw data from microphone, since the sampleRate
s must match but there is no way to know the microphone's sampleRate
(This is actually seriously frustrating, MediaStream is a joke 😠)
Description
•