From 2e6df99ef1ac5c240f0cea7f722fc8751cc7aa4b Mon Sep 17 00:00:00 2001 From: moosthuizen42 <36568323+moosthuizen42@users.noreply.github.com> Date: Thu, 19 Sep 2019 14:52:07 +0200 Subject: [PATCH] Updated depcrecated MediaStream.stop() I experienced the same problem described in: https://stackoverflow.com/questions/34966809/stop-kill-webrtc-media-stream. According to https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API, MediaStream.stop() is deprecated. This commit changes .stop() to .getTracks().forEach( t => t.stop()); --- simple-demos/audio-recording.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-demos/audio-recording.html b/simple-demos/audio-recording.html index 38b20de3..c31d5597 100644 --- a/simple-demos/audio-recording.html +++ b/simple-demos/audio-recording.html @@ -180,7 +180,7 @@