# videorecording

> js records the content played by vedio

Latest version **1.1.1** (published 2020-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install videorecording
pnpm add videorecording
yarn add videorecording
bun add videorecording
```

## 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.1.1 |
| Published | 2020-12-16 |
| First published | 2020-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hetao |
| Maintainers | hetaodahao |
| Keywords | webrtc, video-recording |

## Links

- npm: https://www.npmjs.com/package/videorecording
- Issues: https://github.com/sdoyuxing/VideoRecording/issues
- npm.io page: https://npm.io/package/videorecording

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2020-12-16
- 1.1.0 — 2020-12-12
- 1.0.5 — 2020-12-11
- 1.0.4 — 2020-12-11
- 1.0.3 — 2020-12-07
- 1.0.2 — 2020-12-07
- 1.0.1 — 2020-12-07
- 1.0.0 — 2020-12-07

## README

# VideoRecording.js

**js库录制vedio播放的内容**


[![npm](https://img.shields.io/npm/v/videorecording.svg)](https://npmjs.org/package/videorecording) [![downloads](https://img.shields.io/npm/dm/videorecording.svg)](https://npmjs.org/package/videorecording)

**代码演示:**

```javascript
var videoRecording = new VideoRecording(document.getElementById("video"))

document.getElementById("start").onclick = function () {
    videoRecording.startRecording();
}

document.getElementById("stop").onclick = function () {
    videoRecording.stopRecording().then((blob) => {
        document.getElementById('preview').src = window.URL.createObjectURL(blob);
    });
}
```


<!-- ## Browsers Support

| Browser        | Operating System                    | Features               |
| -------------  |-------------                        |---------------------   |
| Google Chrome  | Windows + macOS + Ubuntu + Android  |  video |
| Firefox        | Windows + macOS + Ubuntu + Android  |  video |
| Opera          | Windows + macOS + Ubuntu + Android  |  video  |
| Edge (new)     | Windows (7 or 8 or 10) and MacOSX   | video  |
| Safari         | macOS + iOS (iPhone/iPad)           |  video  | -->



## 通过标签方式直接引入

```html
<script src="VideoRecording.js"></script>
```


## npm引入

```javascript
npm install VideoRecording --save
```

```javascript
import VideoRecording from "VideoRecording"

var videoRecording = new VideoRecording(document.getElementById("video"))
```

## API

* VideoRecording构造函数传参要录制的vedio Dom。
* startRecording:开始录制。
* stopRecording:停止录制，返回Promies;then方法的参数是录制完成的Blob对象

## Issues提问

* Github: [https://github.com/sdoyuxing/VideoRecording/issues](https://github.com/sdoyuxing/VideoRecording/issues)

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