I just read Henrik Boström's "Intent to Deprecate" post in blink-dev, and he says that a common use case is to "poll getStats() at 10 Hz and render volume bars for each participant based on volume levels from stats objects."
I have volume indicators in my app, and I'm computing the volume
myself using a scriptProcessor. Is getStats() a better way to do
it? If the stats gatherer is already doing the work, perhaps I
don't need to duplicate it.
(I do realize that the scriptProcessor stuff is deprecated and I should switch to audioWorklet, but I haven't done that yet.)
Thanks.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/d1ea4fd7-6a2d-1040-5124-2b8b8fb3a920%40toschlog.com.
Here's a JavaScript example using the getSynchronizationSources method:
I'm wondering about the computational cost of the various methods. Currently my code grabs a packet of samples five times a second and computes the volume using the square root of the mean of the squares. Surely this is cheaper than running the AnalyserNode's FFT?
And what about the getSynchronizationSources() method? Is that
value already being computed so incurs no extra cost?
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/bec92d66-21c1-41a0-8a39-bc31d534f4can%40googlegroups.com.