# live-video

> Live video streams on video tag from device camera

Latest version **1.2.0** (published 2020-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install live-video
pnpm add live-video
yarn add live-video
bun add live-video
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-12-15 |
| First published | 2019-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Josh Hoegen |
| Maintainers | joshhoegen |
| Keywords | video, mediaStream, mediaDevices, javascript |

## Links

- npm: https://www.npmjs.com/package/live-video
- Repository: https://github.com/joshhoegen/live-video
- Issues: https://github.com/joshhoegen/live-video/issues
- npm.io page: https://npm.io/package/live-video

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2020-12-15
- 1.1.2 — 2020-12-13
- 1.1.1 — 2020-12-09
- 1.1.0 — 2019-03-17
- 1.0.0 — 2019-02-08
- 0.0.3 — 2019-01-27
- 0.0.2 — 2019-01-26
- 0.0.1 — 2019-01-25

## README

# Live video from device camera to video tag

Tiny! No Deps! ~2kb!

```
npm install live-video
```

```js
// JUST CALL LiveVideo({video: video, audio: false, camera: 0})
/**
 * Return chosen camera. Return default true value if only one exists
 * @param {Object} props - Holds params to start live-video.
 * @param {Element} props.video - A video element.
 * @param {bool} props.audio - Use audio?
 * @param {Number} props.camera - Which camera to use.
 */

// Import
import LiveVideo from 'live-video';

// Simply add a video node
const lv = new LiveVideo(document.getElementById('myVideo'), false);
lv.play().then(() => {
  // Do stuff
});
```


# License

MIT © Josh Hoegen

---
_Source: https://npm.io/package/live-video · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
