fix: fix webcam (camera-streamer) stop autorestart beforeDestory (#1556)
This commit is contained in:
parent
890b9969ae
commit
2b73cce47a
@ -171,6 +171,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
|
||||
|
||||
beforeDestroy() {
|
||||
this.pc?.close()
|
||||
if (this.restartTimer) window.clearTimeout(this.restartTimer)
|
||||
}
|
||||
|
||||
restartStream() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user