diff options
author | Maxim Devaev <[email protected]> | 2022-02-21 04:18:15 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-02-21 04:18:15 +0300 |
commit | 96191a1b0809a62e5b14316190c3de46b05d9ec2 (patch) | |
tree | 6a1e6238ecb6fad8ce78f644af99c73533fbbe30 /web/share/js/kvm/session.js | |
parent | 67839a52a22a4e470109d3d0c8acf4798843bcf6 (diff) |
ocr
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r-- | web/share/js/kvm/session.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 81c7c12e..68320655 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -32,6 +32,7 @@ import {Atx} from "./atx.js"; import {Msd} from "./msd.js"; import {Streamer} from "./stream.js"; import {Gpio} from "./gpio.js"; +import {Ocr} from "./ocr.js"; export function Session() { @@ -46,10 +47,11 @@ export function Session() { var __streamer = new Streamer(); var __recorder = new Recorder(); - var __hid = new Hid(__streamer.getResolution, __recorder); + var __hid = new Hid(__streamer.getGeometry, __recorder); var __atx = new Atx(__recorder); var __msd = new Msd(); var __gpio = new Gpio(__recorder); + var __ocr = new Ocr(__streamer.getGeometry); var __init__ = function() { __startSession(); @@ -251,6 +253,7 @@ export function Session() { case "atx_state": __atx.setState(data.event); break; case "msd_state": __msd.setState(data.event); break; case "streamer_state": __streamer.setState(data.event); break; + case "streamer_ocr_state": __ocr.setState(data.event); break; } }; @@ -273,6 +276,7 @@ export function Session() { __ping_timer = null; } + __ocr.setState(null); __gpio.setState(null); __hid.setSocket(null); __recorder.setSocket(null); |