stop track

This commit is contained in:
Corey Frang 2018-04-03 18:16:12 -04:00 committed by Michael "Z" Goddard
parent 46b4ef4d80
commit efa6b3a069
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -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;
} }