mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
stop track
This commit is contained in:
parent
46b4ef4d80
commit
efa6b3a069
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ class Video {
|
||||||
this._singleSetup = null;
|
this._singleSetup = null;
|
||||||
// by clearing refs to video and track, we should lose our hold over the camera
|
// by clearing refs to video and track, we should lose our hold over the camera
|
||||||
this._video = null;
|
this._video = null;
|
||||||
|
if (this._track) {
|
||||||
|
this._track.stop();
|
||||||
|
}
|
||||||
this._track = null;
|
this._track = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue