diff --git a/webapp/src/components/genericComponents/miniStreamDisplay.vue b/webapp/src/components/genericComponents/miniStreamDisplay.vue index 7d5d3abe..76f1fd54 100644 --- a/webapp/src/components/genericComponents/miniStreamDisplay.vue +++ b/webapp/src/components/genericComponents/miniStreamDisplay.vue @@ -5,7 +5,7 @@ class="stream-display uk-width-1-1 uk-height-1-1 scrollTarget" > diff --git a/webapp/src/components/tabContentComponents/actionTab.vue b/webapp/src/components/tabContentComponents/actionTab.vue index 7ebcf511..4555c1ee 100644 --- a/webapp/src/components/tabContentComponents/actionTab.vue +++ b/webapp/src/components/tabContentComponents/actionTab.vue @@ -53,7 +53,7 @@ mode.

{{ taskInfoTitle }}

- +
@@ -141,6 +141,7 @@ export default { progress: null, log: [], pollTimer: null, + setStreamId: this.$options.name, }; }, diff --git a/webapp/src/components/tabContentComponents/streamContent.vue b/webapp/src/components/tabContentComponents/streamContent.vue index 7c92e7ca..c267ddf6 100644 --- a/webapp/src/components/tabContentComponents/streamContent.vue +++ b/webapp/src/components/tabContentComponents/streamContent.vue @@ -69,14 +69,16 @@ export default { streamEnabled: function () { return this.ready && !this.disableStream; }, - thisStreamOpen: function () { + streamOpen: function () { // Only a single MJPEG connection should be open at a time return !(this.displaySize[0] == 0) && !(this.displaySize[1] == 0); }, streamImgUri: function () { // Only request the real stream if it's enabled AND currently visible on screen if (this.isVisible && this.streamEnabled) { - return `${this.baseUri}/camera/mjpeg_stream`; + const url = new URL(`${this.baseUri}/camera/mjpeg_stream`); + url.searchParams.append("debugId", this.streamId); + return url.toString(); } // Force the browser to kill the connection by loading a 1 pixel image @@ -141,6 +143,10 @@ export default { this.sizeObserver.disconnect(); this.store.removeStream(this.streamId); } + const imgElement = this.$refs["click-frame"]; + if (imgElement) { + imgElement.src = ONE_PIXEL_FALLBACK; + } }, methods: {