volume-meter
volume-meter copied to clipboard
Relaunch of createAudioMeter
Hello, thanks for useful example. I have integrated it in my React app, with calling of meter.shutdown()
and window.cancelAnimationFrame(rafID)
when component is unmounted. It works fine, however I can't relaunch this gotStream(stream)
function when the stream is changed (user choosed another microphone). Maybe you have any suggestions about how it can be relaunched with updated stream?