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 track
state is set to ended
.AudioContext
to create an oscillator node. For an applied example, check out our Violent Theremin demo (see app.js for relevant code).