MediaRecorder.stop()method (part of the MediaRecorder API) is used to stop media capture.
MediaStreamTrack.stop()method stops playing the source associated with the track. Both the source and the track are deassociated. The
trackstate is set to
AudioContextto create an oscillator node. For an applied example, check out our Violent Theremin demo (see app.js for relevant code).