From 5bdd5fc54b189c50da524501ac67e13f4669feba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 7 Dec 2020 19:45:07 +0100 Subject: [PATCH] ignore if no video after webrtc destroying. --- src/component/main.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/component/main.vue b/src/component/main.vue index 53fcbbcb..4c06d603 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -357,6 +357,8 @@ Vue.set(this.state.connection, 'webrtc', 'disconnected') this.events.emit('internal.webrtc', 'disconnected') + if (!this._video) return + // destroy stream if ('srcObject' in this._video) { this._video.srcObject = null