# qplayer-npm

> This npm is a loader for Qencode Player that can be used to initiate player on client side. Below is minimalistic example for ReactJS.

Latest version **1.0.3** (published 2021-06-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install qplayer-npm
pnpm add qplayer-npm
yarn add qplayer-npm
bun add qplayer-npm
```

## 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.0.3 |
| Published | 2021-06-29 |
| First published | 2021-06-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Qencode |
| Maintainers | brootle |

## Links

- npm: https://www.npmjs.com/package/qplayer-npm
- npm.io page: https://npm.io/package/qplayer-npm

## Recent versions

- 1.0.3 (latest) — 2021-06-29
- 1.0.2 — 2021-06-29
- 1.0.1 — 2021-06-29
- 1.0.0 — 2021-06-29

## README

This npm is a loader for Qencode Player that can be used to initiate player on client side. Below is minimalistic example for ReactJS.

```
import { useEffect } from 'react';

import './App.css';

import {qPlayer} from 'qplayer-npm';

let params = {
  licenseKey: 'your-player-license-key',
  videoSources: { src: "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" }
}

function App() {

  useEffect(() => {

    // initiate player after component was mounted
    qPlayer("player", params, function(){
      console.log("Player initiated")
    });

  });

  return (
    <div className="App">
      <h1>Qencode Player test</h1>
      <div id="player"></div>
    </div>
  );
}

export default App;
```

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