# imenaria-player

> this is Imenaria player

Latest version **1.2.1** (published 2021-03-12) · MIT license · 0 weekly downloads

## Install

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

## 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.2.1 |
| Published | 2021-03-12 |
| First published | 2020-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 37.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ladanTaheri |
| Maintainers | imenaria |

## Links

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

## Recent versions

- 1.2.1 (latest) — 2021-03-12
- 1.2.0 — 2021-03-12
- 1.1.1 — 2021-03-12
- 1.1.0 — 2021-01-03
- 1.0.1 — 2021-01-03
- 1.0.0 — 2020-12-23

## README

# imenaria-player

> this is imenaria player 

[![NPM](https://img.shields.io/npm/v/imenaria-player.svg)](https://www.npmjs.com/package/imenaria-player) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save imenaria-player
```

## Usage

```jsx
import React, { Component } from 'react'

import VideoPlayer from 'imenaria-player'
import 'imenaria-player/dist/index.css'

class Example extends Component {
  state = {
    options: {
      poster: "https://imenaria.org/posters/main.jpg",
      sources: [{
        type: "video/mp4",
        src: "https://imenaria.org/vidos/main.webm"
      }],
      subtitles: [{
        language: 'fa',
        url: "https://imenaria.org/main/subtitles/fa.vtt",
        label: "FA"
      },
      {
        language: 'en',
        url: "https://imenaria.org/main/subtitles/en.vtt",
        label: "EN"
      }],
      defaultSubtitle: 'fa'
    },
    title: "movie Title"
  }
  loadeddata() {
    console.log('loadeddata')
  }
  canplay() {
    console.log('canplay')
  }
  canplaythrough() {
    console.log('canplaythrough')
  }
  play() {
    console.log('play')
  }
  pause() {
    console.log('pause')
  }
  waiting() {
    console.log('waiting')
  }
  playing() {
    console.log('playing')
  }
  ended() {
    console.log('ended')
  }
  error() {
    console.log('error')
  }


  render() {
    const { options } = this.state
    return (<div>
      <VideoPlayer
        onRef={video => { console.log(video) }}
        options={options}
        title={this.state.title}
        loadeddata={this.loadeddata}
        canplay={this.canplay}
        canplaythrough={this.canplaythrough}
        play={this.play}
        pause={this.pause}
        waiting={this.waiting}
        playing={this.playing}
        ended={this.ended}
        error={this.error}
      />
    </div>)
  }
}
```

## License

MIT © [ladanTaheri](https://github.com/ladanTaheri)

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