# react-customize-player

> Out-of-the-box react video player

Latest version **0.1.8** (published 2022-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-customize-player
pnpm add react-customize-player
yarn add react-customize-player
bun add react-customize-player
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2022-10-28 |
| First published | 2022-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 220.3 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wakeup |
| Maintainers | proyyys |
| Keywords | react, player, video, video player, react player, react video, customize player |

## Links

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

## Dependencies (2)

- [nanoid](https://npm.io/package/nanoid.md) ^4.0.0
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.6

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.8 (latest) — 2022-10-28
- 0.1.7 — 2022-10-27
- 0.1.6 — 2022-10-26
- 0.1.5 — 2022-10-25
- 0.1.4 — 2022-10-24
- 0.1.3 — 2022-10-24
- 0.1.2 — 2022-10-22
- 0.1.1 — 2022-10-22
- 0.1.0 — 2022-10-22

## README

Email:caro1xxxhv@gmail.com

### Eng

*Currently in beta, please do not use for work projects*

### Zh
*目前还处于开发测试阶段,请勿用于工作项目中*

### Download

```bash
npm install react-customize-player
```

### Use

#### introduce

```js
import { ReactVideoPlayer } from 'react-customize-player'
```

> **Note: If you don't need a particular configuration item, then write it anyway, but just don't give a value**

#### using

Recommended settings are *not less than 300px in height and width*

```react
//Custom Height Width
<ReactVideoPlayer high="520px" long="800px" />
//or
<ReactVideoPlayer high="calc(100vh)" long="calc(100vw)" />
```

```tsx
//You must pass in the video link
<ReactVideoPlayer ...  videoUrl="Your video url"   />
```

#### Turn on thumbnails

minVideoUrl must be a *compressed* video, otherwise it will cause users to repeat requests for high quality video, minVideoUrl is only used to display thumbnails

```tsx
<ReactVideoPlayer ...  minVideoUrl="Links to compressed videos"   />
```

close minVideo

```tsx
//Just leave it blank
<ReactVideoPlayer ...  minVideoUrl=""   />
```

#### Color

Set the background fill color and the progress bar color

```tsx
//backgroundFillColor
<ReactVideoPlayer  .... backgroundFillColor="#cecece" />
//progressColor
<ReactVideoPlayer  .... progressColor="pink" />
//bufferColor
<ReactVideoPlayer  .... bufferColor="RGB(255,255,255)" />
```

#### Complete

```js
high: string;
long: string;
videoUrl: string;
minVideoUrl?: string;  //turn off  -> minVideoUrl=''
bufferColor?: string; //turn off  -> bufferColor=''
progressColor?: string;  //turn off  -> progressColor=''
backgroundFillColor?: string; //turn off  -> backgroundFillColor=''
```

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