diff --git a/README.md b/README.md index a7dae08..c6f0dfd 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ The table below lists current Nokhwa API support. | OpenCV(`input-opencv`)^ | ✅ | ❌ | ❌ | Linux, Windows, Mac | | IPCamera(`input-ipcam`/OpenCV)^ | ✅ | ❌ | ❌ | Linux, Windows, Mac | | GStreamer(`input-gst`) | ✅ | ✅ | ✅ | Linux, Windows, Mac | - | JS/WASM(`input-wasm`) | 🔮 | 🔮 | 🔮 | Browser(Web) | + | JS/WASM(`input-wasm`) | ✅ | ✅ | ✅ | Browser(Web) | ✅: Working, 🔮 : Experimental, ❌ : Not Supported, 🚧: Planned/WIP diff --git a/examples/jscam/package.json b/examples/jscam/package.json index 1f95b5a..f270c0e 100644 --- a/examples/jscam/package.json +++ b/examples/jscam/package.json @@ -16,6 +16,6 @@ "devDependencies": { "webpack": "^5.51.1", "webpack-cli": "^4.8.0", - "webpack-dev-server": "^4.0.0" + "webpack-dev-server": "^4.1.0" } } diff --git a/nokhwajs/nokhwa.d.ts b/nokhwajs/nokhwa.d.ts index 3afd303..bac6606 100644 --- a/nokhwajs/nokhwa.d.ts +++ b/nokhwajs/nokhwa.d.ts @@ -516,7 +516,7 @@ export class CameraInfo { /** * A wrapper around a [`MediaStream`](https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.MediaStream.html) * # JS-WASM -* This is exported as `NOKCamera`. +* This is exported as `NokhwaCamera`. */ export class NokhwaCamera { free(): void; @@ -526,7 +526,7 @@ export class NokhwaCamera { * # Errors * This may error if permission is not granted, or the constraints are invalid. * # JS-WASM -* This is the constructor for `NOKCamera`. It returns a promise and may throw an error. +* This is the constructor for `NokhwaCamera`. It returns a promise and may throw an error. * @param {CameraConstraints} constraints */ constructor(constraints: CameraConstraints); @@ -582,16 +582,29 @@ export class NokhwaCamera { */ captureFrameRawData(): Uint8Array; /** -* Attaches camera to a `element`(by-id). -* - `generate_new`: Whether to add a video element to provided element to attach to. Set this to `false` if the `element` ID you are passing is already a `