Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filipchalupa/use-chromecast-caf-sender
React hook to use the Chromecast sender SDK in your project.
https://github.com/filipchalupa/use-chromecast-caf-sender
chromecast hook react
Last synced: about 14 hours ago
JSON representation
React hook to use the Chromecast sender SDK in your project.
- Host: GitHub
- URL: https://github.com/filipchalupa/use-chromecast-caf-sender
- Owner: FilipChalupa
- Created: 2023-01-07T11:09:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T13:07:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T11:48:59.741Z (24 days ago)
- Topics: chromecast, hook, react
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/use-chromecast-caf-sender
- Size: 46.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Use Chromecast sender [![npm](https://img.shields.io/npm/v/use-chromecast-caf-sender.svg)](https://www.npmjs.com/package/use-chromecast-caf-sender) ![npm type definitions](https://img.shields.io/npm/types/use-chromecast-caf-sender.svg)
React hook to use the [Chromecast sender SDK](https://developers.google.com/cast/docs/web_sender/integrate) in your project.
## Installation
```bash
npm install use-chromecast-caf-sender
```## How to use
```jsx
import { useChromecastSender } from 'use-chromecast-caf-sender'const Component = () => {
const { cast } = useChromecastSender()return
{cast === null ? 'Loading' : 'Cast sender sdk is loaded'}
}
```## Development
- Install dependencies: `npm ci`
- Build the package: `npm run dev`