Describe the bug
on web platform, when i start the scan and call stopScan before the camera fully loaded i get the following error: Uncaught (in promise) TypeError: st is null on st.getTracks() in the following function:
var _a;
if (this._video) {
this._video.pause();
const st = this._video.srcObject;
const tracks = st.getTracks();
for (var i = 0; i < tracks.length; i++) {
var track = tracks[i];
track.stop();
}
(_a = this._video.parentElement) === null || _a === void 0 ? void 0 : _a.remove();
this._video = null;
}
}```
Describe the bug on web platform, when i start the scan and call stopScan before the camera fully loaded i get the following error: Uncaught (in promise) TypeError: st is null on st.getTracks() in the following function: