From ce03e978dc33fb0049ca7c512b9890966909b36e Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Thu, 5 Apr 2018 13:31:17 -0400 Subject: [PATCH] stop the track in the "on-off" scenario --- src/io/video.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/video.js b/src/io/video.js index fef15d5c9..d9e155454 100644 --- a/src/io/video.js +++ b/src/io/video.js @@ -221,6 +221,7 @@ class Video { }, stream => { // if we disabled video in the meantime... if (!this._video) { + stream.getTracks()[0].stop(); this._singleSetup = null; return; }