mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-15 03:59: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 => {
|
}, stream => {
|
||||||
// if we disabled video in the meantime...
|
// if we disabled video in the meantime...
|
||||||
if (!this._video) {
|
if (!this._video) {
|
||||||
|
stream.getTracks()[0].stop();
|
||||||
this._singleSetup = null;
|
this._singleSetup = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue