# chomecast-sender

> A completely typed chromecast sender application

Latest version **0.0.33** (published 2021-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install chomecast-sender
pnpm add chomecast-sender
yarn add chomecast-sender
bun add chomecast-sender
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.33 |
| Published | 2021-08-02 |
| First published | 2021-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Roy OSSAI |
| Maintainers | eleven-am |
| Keywords | chromecast, typescript, chromecast-sender |

## Links

- npm: https://www.npmjs.com/package/chomecast-sender
- Repository: https://github.com/Eleven-am/chomecast-sender
- Homepage: https://github.com/Eleven-am/chomecast-sender#readme
- Issues: https://github.com/Eleven-am/chomecast-sender/issues
- npm.io page: https://npm.io/package/chomecast-sender

## Dependencies (1)

- [@types/chromecast-caf-sender](https://npm.io/package/@types/chromecast-caf-sender.md) ^1.0.3

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.33 (latest) — 2021-08-02
- 0.0.32 — 2021-07-25
- 0.0.31 — 2021-07-25
- 0.0.30 — 2021-07-25
- 0.0.29 — 2021-07-25
- 0.0.28 — 2021-07-25
- 0.0.27 — 2021-07-25
- 0.0.26 — 2021-06-21
- 0.0.25 — 2021-06-21
- 0.0.24 — 2021-06-21
- 0.0.23 — 2021-06-21
- 0.0.22 — 2021-06-21
- 0.0.21 — 2021-06-21
- 0.0.20 — 2021-06-21
- 0.0.19 — 2021-06-21
- … 9 more at https://npm.io/package/chomecast-sender/versions

## README

# chomecast-sender
A completely typed chromecast sender application

## Description
This is a CAF-Sender application completely built in Typescript with support for on and off event listeners.

#### Usage
###### ES6
`import Chromecast from 'chomecast-sender';`

###### CJS
`const Chromecast = require('chomecast-sender');`

###### Initialisation
`const cast = new Chromecast(receiverApplicationId)`

#### Available methods

```
import Chromecast, {CastEventType} from "chomecast-sender";
const cast = new Chromecast(receiverApplicationId);

cast.connect();
cast.disconnect();
cast.seek(50);
cast.volume(0.2);
cast.playPause();
cast.muteUnmute();
cast.castMedia(HTMLVideoElement);
await cast.send(namespaceObject);

cast.on(CastEventType.AVAILABLE, event: CastEvent => {
  //..code goes here
})

cast.off(CastEventType.AVAILABLE, event: CastEvent => {
   //..code goes here
})
```

For list of available events check out the CastEventType

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