From f49718593fe5a9881054aef6f198105d09958f52 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 16 Apr 2019 09:37:35 +0200 Subject: [PATCH] image: clean old stream related code --- src/client/app/widgets/plots/image.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/client/app/widgets/plots/image.js b/src/client/app/widgets/plots/image.js index ef42d55a..3671cc42 100644 --- a/src/client/app/widgets/plots/image.js +++ b/src/client/app/widgets/plots/image.js @@ -46,11 +46,6 @@ module.exports = class Image extends Widget { this.widget.style.setProperty('background-position', this.getProp('position')) this.widget.style.setProperty('background-repeat', this.getProp('repeat')) - if (this.getProp('stream') !== '') { - this.bindedOnStreamUpdate = this.onStreamUpdate.bind(this) - ipc.on('video', this.bindedOnStreamUpdate) - } - } setValue(v, options={}) { @@ -82,15 +77,6 @@ module.exports = class Image extends Widget { } - onStreamUpdate(event) { - - var [stream, data] = event - if (stream === this.getProp('stream')) { - this.setValue('data:image/jpeg;base64,' + data) - } - - } - onRemove() { if (this.bindedOnStreamUpdate) ipc.off('video', this.bindedOnStreamUpdate)