# chromecast-player

> simple chromecast player

Latest version **0.2.3** (published 2015-11-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2015-11-18 |
| First published | 2014-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 101 |
| Author | Simon Kusterer |
| Maintainers | xat |
| Keywords | chromecast, media, player, video |

## Links

- npm: https://www.npmjs.com/package/chromecast-player
- Repository: https://github.com/xat/chromecast-player
- Issues: https://github.com/xat/chromecast-player/issues
- npm.io page: https://npm.io/package/chromecast-player

## Dependencies (8)

- [ware](https://npm.io/package/ware.md) ^1.2.0
- [debug](https://npm.io/package/debug.md) ^2.1.1
- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [mutate.js](https://npm.io/package/mutate.js.md) ^0.2.0
- [time-line](https://npm.io/package/time-line.md) ^1.0.1
- [promiscuous](https://npm.io/package/promiscuous.md) ^0.6.0
- [castv2-client](https://npm.io/package/castv2-client.md) ^1.1.0
- [chromecast-scanner](https://npm.io/package/chromecast-scanner.md) ^0.5.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.3 (latest) — 2015-11-18
- 0.2.2 — 2015-03-21
- 0.2.1 — 2015-02-22
- 0.2.0 — 2015-02-21
- 0.1.10 — 2015-02-19
- 0.1.9 — 2015-02-01
- 0.1.8 — 2015-01-31
- 0.1.7 — 2014-12-16
- 0.1.6 — 2014-10-27
- 0.1.5 — 2014-10-27
- 0.1.4 — 2014-10-26
- 0.1.3 — 2014-10-26
- 0.1.2 — 2014-10-22
- 0.1.1 — 2014-10-22
- 0.1.0 — 2014-10-20
- … 7 more at https://npm.io/package/chromecast-player/versions

## README

# chromecast-player

simple chromecast player.
Relies on the [castv2-client](https://github.com/thibauts/node-castv2-client) lib
from thibauts, all credits go to him.

### Usage Samples

Start Playback of some video file:

```javascript
var player = require('chromecast-player')();
var media = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4';
player.launch(media, function(err, p) {
  p.once('playing', function() {
    console.log('playback has started.');
  });
});
```

Attach to a currently playing session:

```javascript
var player = require('chromecast-player')();
player.attach(function(err, p) {
  p.pause();
});
```

### Installation

`npm install chromecast-player`

## License
Copyright (c) 2014 Simon Kusterer
Licensed under the MIT license.

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