``hi, i have problem when i want to stop and restart fromStream() function. whenever I deactivate() . and it doesn't work again after using WaveJS.fromStream() again. how can i solve this.
`function start() {
navigator.mediaDevices.getUserMedia({
audio: true,
}).then((mediaStream) => {
stream = mediaStream
const {deactivate} = WaveJS.fromStream(
stream,
"canvas",
{
type: "fireworks",
colors: ["white"]
}
, {connectDestination: false}
)
deactivate_wave = deactivate
})
}
function stop() {
deactivate_wave()
}
``hi, i have problem when i want to stop and restart fromStream() function. whenever I deactivate() . and it doesn't work again after using WaveJS.fromStream() again. how can i solve this.