1

is there any way to generally just shut down all media streams?

I'm working with a package called wavesurfer in react and i can't stop the microphone with the given methods of the package. So i was wondering if there is anything to just cut all the audio/video devices as easily as possible?

Something like

if (mediaDevice === active) {
   mediaDevice.stop()
}

1 Answers1

1

No there isn't.
You must have access to all the MediaStreamTracks that do use the device and call their stop() method.

Kaiido
  • 87,051
  • 7
  • 143
  • 194