mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-14 11:39:59 -05:00
stop the track in the "on-off" scenario
This commit is contained in:
parent
825ff22fa4
commit
ce03e978dc
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue