stop the track in the "on-off" scenario
This commit is contained in:
1 parent
825ff22fa4
commit
ce03e978dc
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user