# zaojiu-player

> video player for xingshu co., ltd.

Latest version **2.0.13** (published 2020-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install zaojiu-player
pnpm add zaojiu-player
yarn add zaojiu-player
bun add zaojiu-player
```

## 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 | 2.0.13 |
| Published | 2020-09-05 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 153.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | duxiaofeng |
| Maintainers | 297951292 |
| Keywords | video-player |

## Links

- npm: https://www.npmjs.com/package/zaojiu-player
- Repository: https://github.com/duxiaofeng-github/zaojiu-player
- Homepage: https://github.com/duxiaofeng-github/zaojiu-player#readme
- Issues: https://github.com/duxiaofeng-github/zaojiu-player/issues
- npm.io page: https://npm.io/package/zaojiu-player

## Dependencies (3)

- [rxjs](https://npm.io/package/rxjs.md) ^5.4.2
- [hls.js](https://npm.io/package/hls.js.md) ^0.7.11
- [css-element-queries](https://npm.io/package/css-element-queries.md) ^1.2.1

## 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

- 2.0.13 (latest) — 2020-09-05
- 2.0.12 — 2020-09-05
- 2.0.11 — 2017-08-04
- 2.0.10 — 2017-07-28
- 2.0.9 — 2017-07-26
- 2.0.8 — 2017-07-26
- 2.0.7 — 2017-07-26
- 2.0.6 — 2017-07-26
- 2.0.5 — 2017-07-26
- 2.0.4 — 2017-07-26
- 2.0.3 — 2017-07-26
- 2.0.2 — 2017-07-26
- 2.0.1 — 2017-07-26
- 2.0.0 — 2017-07-25

## README

# Zaojiu player

## Install

```
yarn add zaojiu-player
```

or

```
npm i zaojiu-player
```

## Usage

```typescript
import { ZaojiuPlayer } from "zaojiu-player";
import { FlashVideo } from "zaojiu-player/dist/zaojiu-player-flash.plugin";

// if you don't want to play rtmp live stream, you can the remove following line
ZaojiuPlayer.use(FlashVideo);

const srcRtmp = {
  src: "rtmp://ali-live.zaojiu.com/zaojiu/59313bd2647259000183041d_sd?auth_key=1512472740-0-0-845571a71200e6c83807d4e399f3ad00",
  quality: "Live",
  mimetype: "rtmp/mp4",
};

const srcMD = {
  src: "http://7qnbk6.com1.z0.glb.clouddn.com/The-Battle-of-Evony-MD.mp4",
  quality: "高清",
  mimetype: "video/mp4",
};

const srcSD = {
  src: "http://7qnbk6.com1.z0.glb.clouddn.com/The-Battle-of-Evony-SD.mp4",
  quality: "标清",
  mimetype: "video/mp4",
};

const srcHD = {
  src: "http://7qnbk6.com1.z0.glb.clouddn.com/The-Battle-of-Evony-HD.mp4",
  quality: "超清",
  mimetype: "video/mp4",
};

const player = new ZaojiuPlayer({
  element: "player",
  playList: [srcSD, srcMD, srcHD],
  autoplay: true,
  swf: "example/video-js.swf",
});

// you can control video player by using its instance
setTimeout(() => {
  player.video.el.pause();
}, 3000);
```

## API

You can get its api definitions from [here](./types)

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