/user-media-stream

A streamlined JavaScript library designed for web applications to easily handle camera streams.

Primary LanguageTypeScriptMIT LicenseMIT

user-media-stream

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.

Installation

npm i user-media-stream

Usage

  • Media stream operations:

    import { createUserMediaStream } from "user-media-stream";
  • Media constraints & capablities shim:

    /// <reference types="user-media-stream/media-track-shims" />

Acknowledgement

This package is largely inspired by the code in camera.ts from gruhn/vue-qrcode-reader. ❤️

License

MIT