This is a streamlined JavaScript library designed for web applications to easily handle camera streams. Its main goal is to offer straightforward methods for managing camera interactions, with a focus on compatibility and simplicity.
npm i user-media-stream
-
Media stream operations:
import { createUserMediaStream } from "user-media-stream";
-
Media constraints & capablities shim:
/// <reference types="user-media-stream/media-track-shims" />
This package is largely inspired by the code in camera.ts
from gruhn/vue-qrcode-reader
. ❤️
MIT