ignore if no video after webrtc destroying.

This commit is contained in:
Miroslav Šedivý 2020-12-07 19:45:07 +01:00
parent cab53d7d17
commit 5bdd5fc54b

View File

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