We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7149a1b commit e2e949bCopy full SHA for e2e949b
libraries/Camera/extras/WebSerialCamera/app.js
@@ -5,12 +5,9 @@ const saveImageButton = document.getElementById('save-image');
5
const canvas = document.getElementById('bitmapCanvas');
6
const ctx = canvas.getContext('2d');
7
8
-// TODO check for signals
9
-// TODO implement transformer
10
-// TODO get image format from device
11
-// SEE: https://developer.chrome.com/articles/serial/#transforming-streams
12
-// SEE: https://developer.chrome.com/articles/serial/#signals
13
-
+// Check the following links for more information on the Web Serial API:
+// https://developer.chrome.com/articles/serial/
+// https://wicg.github.io/serial/
14
15
// Set the buffer size to the total bytes. This allows to read the entire bitmap in one go.
16
const bufferSize = 2 * 1024 * 1024; // Max buffer size is 16MB
0 commit comments