From 6f5eee6c0f428578f934673cd6eac7b33d06003a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 9 Sep 2020 12:09:23 -0400 Subject: [PATCH] Add show_analyze_frames function to tell zms to send analysis frames --- web/js/MonitorStream.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index feb4b3611..da082d0e6 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -276,4 +276,10 @@ function MonitorStream(monitorData) { .fail(this.onFailure.bind(this)); }; } + this.analyze_frames = true; + this.show_analyze_frames = function(toggle) { + this.analyze_frames = toggle; + console.log("Sending command " + (this.analyze_frames?CMD_ANALYZE_ON:CMD_ANALYZE_OFF)); + this.streamCmdReq.send(this.streamCmdParms+"&command="+(this.analyze_frames?CMD_ANALYZE_ON:CMD_ANALYZE_OFF)); + } } // end function MonitorStream