This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas height="720" width="1280" id="canvas"></canvas> | |
<button id="snapshotBtn">snapshot</button> | |
<script> | |
var fragments = []; | |
var frames = []; | |
var ws = new WebSocket('ws://192.168.1.3:4001'); | |
var canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var reader = new FileReader(); |