diff --git a/main.py b/main.py index 9d8e085..90133f2 100755 --- a/main.py +++ b/main.py @@ -562,6 +562,14 @@ def frame_ws(ws: geventwebsocket.websocket.WebSocket): if data.channels == 4 and "w" in msg: data.buffer[..., 3] = msg["w"] runner.app.datasource.pushData(data) + elif msg["ty"] == "full": + if runner.app.name != "pixelcanvas": + startApp("pixelcanvas") + + data = runner.app.datasource.getData().clone() + data.created = time.time() + data.buffer = np.reshape(msg["data"], (40,80,3)) + runner.app.datasource.pushData(data) @bottle.route("/save_frame")