# video-player-for-react

> a react video player component base

Latest version **1.0.7** (published 2020-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install video-player-for-react
pnpm add video-player-for-react
yarn add video-player-for-react
bun add video-player-for-react
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-12-20 |
| First published | 2020-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 158.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | victoralvesf |
| Maintainers | victoralvesf |

## Links

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

## Dependencies (2)

- [react-icons](https://npm.io/package/react-icons.md) ^4.1.0
- [react-device-detect](https://npm.io/package/react-device-detect.md) ^1.14.0

## Recent versions

- 1.0.7 (latest) — 2020-12-20
- 1.0.6 — 2020-12-19
- 1.0.5 — 2020-12-19
- 1.0.4 — 2020-12-18
- 1.0.3 — 2020-12-17
- 1.0.2 — 2020-12-17
- 1.0.1 — 2020-12-17
- 1.0.0 — 2020-12-17

## README

# video-player-for-react

> a react video player component base

[![NPM](https://img.shields.io/npm/v/video-player-for-react.svg)](https://www.npmjs.com/package/video-player-for-react) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Disclaimer

- This library is currently in alpha version, **DO NOT** use in production!

## Functions

|                               |                    |
| ----------------------------- | ------------------ |
| Play/Pause                    | :heavy_check_mark: |
| Navigation with progress bar  | :heavy_check_mark: |
| Enter Picture-In-Picture mode | :heavy_check_mark: |
| Click on video to Play/Pause  | :heavy_check_mark: |
| Overlay play button           | :heavy_check_mark: |
| Mute                          | :heavy_check_mark: |
| Adjust volume                 | :heavy_check_mark: |
| Fullscreen mode               | :heavy_check_mark: |
| Select subtitles              | :x:                |
| Show subtitles                | :x:                |
| Playback rate                 | :x:                |

## Install

```bash
npm install --save video-player-for-react
```

## CodeSandbox demo

[https://codesandbox.io/s/video-player-for-react](https://codesandbox.io/s/video-player-for-react-9lc1q)

## Getting started

```jsx
import React from 'react'

import { ReactVideoPlayer } from 'video-player-for-react'
import 'video-player-for-react/dist/index.css'

const App = () => {
  return (
    <ReactVideoPlayer
      width='928px'
      url='http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
      type='video/mp4'
      poster='http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/BigBuckBunny.jpg'
      // captions={[
      //   {
      //     kind: 'captions',
      //     label: 'English',
      //     srcLang: 'en',
      //     src: 'caption_url'
      //   }
      // ]}
    />
  )
}

export default App
```

## License

MIT © [victoralvesf](https://github.com/victoralvesf)

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