# audio-player-lib

> audio player lib

Latest version **1.0.4** (published 2023-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install audio-player-lib
pnpm add audio-player-lib
yarn add audio-player-lib
bun add audio-player-lib
```

## 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.4 |
| Published | 2023-04-01 |
| First published | 2023-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | LFF5644 |
| Maintainers | lff5644 |
| Keywords | audio, lib, library, player |

## Links

- npm: https://www.npmjs.com/package/audio-player-lib
- Repository: https://github.com/LFF5644/audioPlayerLib
- Homepage: https://github.com/LFF5644/audioPlayerLib#readme
- Issues: https://github.com/LFF5644/audioPlayerLib/issues
- npm.io page: https://npm.io/package/audio-player-lib

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-04-01
- 1.0.3 — 2023-03-31
- 1.0.1 — 2023-03-31
- 1.0.0 — 2023-03-31

## README

# Audio Player Lib
a audio player in nodejs for linux and windows (other platforms are not tested)

you need nodejs and for linux you need [`mplayer`](http://www.mplayerhq.hu/design7/news.html) at `/usr/bin/mplayer`

than you can simply type in a other project
`npm install audio-player-lib`

than you can use the package

```
const audioPlayerLib=require("audio-player-lib");
const player=audioPlayerLib.createPlayer();

player.addTrack({
	name: "Song",	// optional
	src:"song.mp3",	// required
});

console.log(player.getPlayerKey("tracks"));
player.play();

setTimeout(player.stop,1e4);
setInterval(()=>{
	const isPlaying=player.getPlayerKey("isPlaying");
	console.log(isPlaying?"Wiedergabe Läuft ...":"Keine Wiedergabe!");
},1e3)
```

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