Add show_analyze_frames function to tell zms to send analysis frames

This commit is contained in:
Isaac Connor 2020-09-09 12:09:23 -04:00
parent df0a0c7853
commit 6f5eee6c0f
1 changed files with 6 additions and 0 deletions

View File

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