# ffplay

> Play audio using FFplay

Latest version **1.1.0** (published 2018-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install ffplay
pnpm add ffplay
yarn add ffplay
bun add ffplay
```

## 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.1.0 |
| Published | 2018-02-01 |
| First published | 2015-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | dnaf |
| Maintainers | rectar2 |
| Keywords | audio, ffplay, sound |

## Links

- npm: https://www.npmjs.com/package/ffplay
- Repository: https://github.com/dnaf/node-ffplay
- Homepage: https://github.com/dnaf/node-ffplay#readme
- Issues: https://github.com/dnaf/node-ffplay/issues
- npm.io page: https://npm.io/package/ffplay

## Recent versions

- 1.1.0 (latest) — 2018-02-01
- 1.0.1 — 2015-09-20
- 1.0.0 — 2015-09-20

## README

# ffplay
Allows you to play audio using FFplay.

## Usage
```javascript
var FFplay = require("ffplay");
var player = new FFplay("./path/to/sound/file.wav"); // Loads the sound file and automatically starts playing

player.pause(); // Pauses playback

player.resume(); // Resumes playback

player.stop(); // Stops playback.

// The player can't play again after being stopped,
// so you should remove it
player = null;
```

### Custom options

You can also pass custom options when you construct `FFplay` like so:
```
var player = new FFplay("./path/to/sound/file.wav", ["-ss 12", "-nodisp", "-autoexit"]);
```

The `-nodisp` and `-autoexit` flags are set by default, but if you provide an array of options, you will have to manually specify them.

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