I'm digging up an old thread here, but I came across it while looking to do the same.
In case you're still looking to do this, I found a solution using Web Audio, and posted about it here https://groups.google.com/forum/#!topic/discuss-webrtc/weTi7_ppwb4 John On Tuesday, October 29, 2013 4:54:52 PM UTC, [email protected] wrote: > ok, for anyone interested, the latest nightly is firing > > iceConnectionState:connected before iceConnectionState:new (on my local > > network). Otherwise the peerConnection is behaving correctly. > > > > Aurora behaves as expected. > > > > Again, can anyone give me advice on reading the audioLevel using getStats? > > Please? > > > > > > > > On Mon, Oct 28, 2013 at 5:16 PM, <[email protected]> wrote: > > > > > correction, the state transition of the pc back to "new" is not related to > > > calling getStats -- some other issue that I'm tracking down now. > > > > > > but I do need an example of reading the audio input level, please. > > > > > > > > > > > > On Mon, Oct 28, 2013 at 5:07 PM, <[email protected]> wrote: > > > > > >> I'm running the latest nightly and trying to use getStats to read the > > >> microphone level on a connected pc. > > >> > > >> I call > > >> pc.getStats(localStream.getAudioTracks[0],statsCallback,failCallback) to > > >> get stats on the local audio stream but I have no idea how to read the > > >> microphone volume. > > >> > > >> My statsCallback is invoked, I immediately return from the callback,then > > >> the PC's iceConnectionState transitions from connected to new. Very > > >> strange behavior. > > >> > > >> If I never call getStats, then all is well. > > >> > > >> I see that https://bugzilla.mozilla.org/show_bug.cgi?id=902003 is > > >> recently resolved / fixed, but I think it is not working. > > >> > > >> Is there an example of reading the microphone level? > > >> > > > > > > _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

